CVE-2022-29970Path Traversal in Sinatra

Severity
7.5HIGHNVD
EPSS
0.6%
top 30.48%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 2
Latest updateJul 22

Description

Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitability: 3.9 | Impact: 3.6

Affected Packages2 packages

RubyGemssinatra/sinatra< 2.2.0
NVDsinatrarb/sinatra< 2.2.0

Also affects: Debian Linux 10.0

Patches

🔴Vulnerability Details

5
OSV
ruby-sinatra vulnerabilities2025-07-22
GHSA
sinatra does not validate expanded path matches2022-05-03
OSV
sinatra does not validate expanded path matches2022-05-03
CVEList
CVE-2022-29970: Sinatra before 22022-05-02
OSV
CVE-2022-29970: Sinatra before 22022-05-02

📋Vendor Advisories

3
Ubuntu
Sinatra vulnerabilities2025-07-22
Red Hat
sinatra: path traversal possible outside of public_dir when serving static files2022-05-02
Debian
CVE-2022-29970: ruby-sinatra - Sinatra before 2.2.0 does not validate that the expanded path matches public_dir...2022
CVE-2022-29970 — Path Traversal in Sinatrarb Sinatra | cvebase