CVE-2022-29970
High
CVE-2022-29970
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Exploit probability
2.2%
Published
May 2, 2022
Required by
Not available
Last source change
August 12, 2026
02 / AFFECTED SOFTWARE
Affected packages
72 explicit affected versions
88 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
Open Source Vulnerabilities
CVE-2022-29970
View original source
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Open Source Vulnerabilities
GHSA-qp49-3pvw-x4m5
View original source
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
05 / REFERENCES
Further evidence
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29970.json
- https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e
- https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-29970
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-29970.yml
- https://github.com/sinatra/sinatra
- https://github.com/sinatra/sinatra/pull/1683
- https://github.com/skylightio/skylight-ruby/pull/294