Directory Traversal Vulnerability in Rack CORS Middleware for Ruby
CVE-2019-18978
5.3MEDIUM
What is CVE-2019-18978?
A vulnerability exists in the Rack CORS Middleware gem for Ruby, prior to version 1.0.4, that permits unauthorized directory traversal attacks. This flaw arises from insufficient validation of pathname formats, allowing attackers to access sensitive resources by manipulating URL paths. The vulnerability emphasizes the importance of ensuring that file paths are canonicalized before processing, to mitigate risks associated with unauthorized access to private resources.