{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-29970","id":"CVE-2022-29970","title":"sinatra does not validate expanded path matches","description":"Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.","descriptionLong":"Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.","published":"2022-05-02T00:00:00.000Z","updated":"2026-10-28T02:30:54.659903565Z","reserved":"2022-05-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"sinatra","purl":"pkg:gem/sinatra","ranges":["<2.2.0"],"fixed":["2.2.0"],"advisory":"GHSA-qp49-3pvw-x4m5"}],"cwes":["CWE-22","CWE-426"],"aliases":["GHSA-qp49-3pvw-x4m5"],"references":[{"url":"https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e","tags":["x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29970.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29970","tags":["advisory"]},{"url":"https://github.com/sinatra/sinatra/pull/1683","tags":["web"]},{"url":"https://github.com/skylightio/skylight-ruby/pull/294","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-29970.yml","tags":["web"]},{"url":"https://github.com/sinatra/sinatra","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02137,"epssPercentile":0.82407,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-29970","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29970","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-29970","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qp49-3pvw-x4m5","ok":true,"note":"GHSA-qp49-3pvw-x4m5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-29970","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}