{"id":"CVE-2022-29970","aliases":["CVE-2022-29970","GHSA-qp49-3pvw-x4m5"],"related":[],"kind":"vulnerability","state":"published","title":"sinatra does not validate expanded path matches","summary":"Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.","source":"cvelist"},{"lang":"es","text":"Sinatra versiones anteriores a 2.2.0, no comprueba que la ruta expandida coincida con public_dir cuando sirve archivos estáticos","source":"nvd"}],"published":"2022-05-02T00:00:00.000Z","modified":"2026-06-17T04:41:03.527Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-426"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.0"}],"ecosystem":"RubyGems","package":"sinatra","purl":"pkg:gem/sinatra","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.0"}],"vendor":"sinatrarb","product":"sinatra","cpe":"cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29970","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sinatra/sinatra/pull/1683","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/skylightio/skylight-ruby/pull/294","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-29970.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sinatra/sinatra","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-29970","url":"https://www.cve.org/CVERecord?id=CVE-2022-29970","licence":"CVE Terms of Use","modified":"2025-11-04T16:09:45.370Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qp49-3pvw-x4m5","url":"https://github.com/advisories/GHSA-qp49-3pvw-x4m5","licence":"CC-BY-4.0","modified":"2025-11-04T19:59:48.796Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-29970","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29970","licence":"Public domain","modified":"2026-06-17T04:41:03.527Z"}],"updatedAt":"2026-11-25T22:58:11.331Z","epss":{"score":0.02137,"percentile":0.82534,"date":"2026-12-01T12:00:22.000Z"}}