{"id":"CVE-2022-29970","aliases":["GHSA-qp49-3pvw-x4m5"],"url":"https://o3.security/vulnerability/CVE-2022-29970","summary":"sinatra does not validate expanded path matches","details":"Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.","published":"2022-05-02T00:00:00Z","modified":"2026-07-15T01:49:08.466327073Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"sinatra","fixedVersion":"2.2.0"}],"fix":{"url":"https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e","label":"sinatra/sinatra#1683"},"references":[{"type":"WEB","url":"https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29970.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29970"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:08.466327073Z"}}