Path Traversal in Sinatrarb Sinatra
CVE-2022-29970
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.021, 82.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Sinatrarb Sinatra
- Debian Linux — versions 10.0
Weakness classification (CWE)
References
- github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948a… (Patch, Third Party Advisory)
- [debian-lts-announce] 20221028 [SECURITY] [DLA 3166-1] ruby-sinatra security update (mailing-list, Mailing List, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2024/09/msg00020.html