# CVE-2022-29970

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-05-02 · Modified: 2025-11-04
- Aliases: MGASA-2022-0280, SUSE-SU-2022:2046-1, RHSA-2022:2253, RHSA-2022:2255, RHSA-2022:2256, RHSA-2022:4587, RHSA-2022:4661, UBUNTU-CVE-2022-29970, DEBIAN-CVE-2022-29970, DLA-3166-1, GHSA-qp49-3pvw-x4m5
- Record: https://cvemate.com/vulnerability/CVE-2022-29970 · JSON: https://cvemate.com/vulnerability/CVE-2022-29970/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 2.137%, percentile 82.631%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian ruby-sinatra (Debian): \< 2.0.5-4+deb10u1 \| \< 2.2.2-1
- ubuntu ruby-sinatra (Ubuntu): \< 1.4.7-3ubuntu0.1~esm2 \| \< 1.4.8-1ubuntu0.1~esm2 \| \< 2.0.8.1-2+deb11u1build0.22.04.1
- debian debian\_linux: 10.0
- RubyGems sinatra (RubyGems): \< 2.2.0
- mageia ruby-sinatra (Mageia): \< 2.0.8.1-1.1.mga8
- redhat pcs (Red Hat): \< 0:0.10.4-6.el8\_2.2 \| \< 0:0.10.2-4.el8\_1.2 \| \< 0:0.10.8-1.el8\_4.1 \| \< 0:0.11.1-10.el9\_0.1 \| \< 0:0.10.12-6.el8\_6.1
- redhat pcs-snmp (Red Hat): \< 0:0.10.4-6.el8\_2.2 \| \< 0:0.10.2-4.el8\_1.2 \| \< 0:0.10.8-1.el8\_4.1 \| \< 0:0.11.1-10.el9\_0.1 \| \< 0:0.10.12-6.el8\_6.1
- suse rubygem-sinatra&distro=SUSE OpenStack Cloud Crowbar 8 (SUSE Linux Enterprise): \< 1.4.6-3.3.1
- sinatrarb sinatra: \< 2.2.0

## References (first 20 of 32)

- <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://advisories.mageia.org/MGASA-2022-0280.html>
- <https://bugs.mageia.org/show_bug.cgi?id=30542>
- <https://lists.suse.com/pipermail/sle-security-updates/2022-June/011265.html>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222046-1/>
- <https://bugzilla.suse.com/1199138>
- <https://www.suse.com/security/cve/CVE-2022-29970>
- <https://access.redhat.com/errata/RHSA-2022:2253>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2081096>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_2253.json>
- <https://access.redhat.com/security/cve/CVE-2022-29970>
- <https://www.cve.org/CVERecord?id=CVE-2022-29970>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29970>
- <https://access.redhat.com/errata/RHSA-2022:2255>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_2255.json>
- <https://access.redhat.com/errata/RHSA-2022:2256>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_2256.json>

---

Data as of 2026-12-05T07:50:58.471Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
