Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
References
| Link | Resource |
|---|---|
| https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e | Patch Third Party Advisory |
Configurations
Information
Published : 2022-05-02 05:15
Updated : 2022-05-09 17:27
NVD link : CVE-2022-29970
Mitre link : CVE-2022-29970
JSON object : View
Products Affected
sinatrarb
- sinatra
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
