CVE
CVE-2022-29970
publishedsinatra: path traversal possible outside of public_dir when serving static files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| AlmaLinux | 8 | pcs | Advisory build | 0.10.12-6.el8.alma | ALSA-2022:4661 |
| Debian | bullseye | ruby-sinatra | Advisory build | 2.0.8.1-2+deb11u1 | DLA-3877-1 |
| Oracle Linux | 8 | pcsx86_64 | Advisory build | 0:0.10.12-6.0.1.el8_6.1 | ELSA-2022-9416 |
| Red Hat Enterprise Linux | RHEL-8 | pcsaarch64 | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Ubuntu | bionic | ruby-sinatra | Advisory build | 1.4.8-1ubuntu0.1~esm2 | USN-7664-1 |
| Rocky Linux | 8 | libdbsrc | Listed in advisory | Not stated | RLSA-2022:8506 |
| AlmaLinux | 8 | pcs-snmp | Advisory build | 0.10.12-6.el8.alma | ALSA-2022:4661 |
Show 67 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | pcs | Advisory build | 0.11.1-10.el9 | ALSA-2022:4587 |
| AlmaLinux | 9 | pcs-snmp | Advisory build | 0.11.1-10.el9 | ALSA-2022:4587 |
| Debian | buster | ruby-sinatra | Advisory build | 2.0.5-4+deb10u1 | DLA-3166-1 |
| Oracle Linux | 8 | pcs-snmpx86_64 | Advisory build | 0:0.10.12-6.0.1.el8_6.1 | ELSA-2022-9416 |
| Oracle Linux | 9 | pcsaarch64 | Advisory build | 0:0.11.1-10.el9_0.1 | ELSA-2022-9513 |
| Oracle Linux | 9 | pcsx86_64 | Advisory build | 0:0.11.1-10.el9_0.1 | ELSA-2022-9513 |
| Oracle Linux | 9 | pcs-snmpaarch64 | Advisory build | 0:0.11.1-10.el9_0.1 | ELSA-2022-9513 |
| Oracle Linux | 9 | pcs-snmpx86_64 | Advisory build | 0:0.11.1-10.el9_0.1 | ELSA-2022-9513 |
| Red Hat Enterprise Linux | RHEL-8 | pcsaarch64 | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcsaarch64 | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.2-4.el8_1.2 | RHSA-2022:2255 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-8 | pcss390x | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat Enterprise Linux | RHEL-8 | pcss390x | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcss390x | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.2-4.el8_1.2 | RHSA-2022:2255 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.2-4.el8_1.2 | RHSA-2022:2255 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpaarch64 | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpaarch64 | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpaarch64 | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.2-4.el8_1.2 | RHSA-2022:2255 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmps390x | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmps390x | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmps390x | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.2-4.el8_1.2 | RHSA-2022:2255 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat Enterprise Linux | RHEL-9 | pcsaarch64 | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat Enterprise Linux | RHEL-9 | pcsppc64le | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat Enterprise Linux | RHEL-9 | pcss390x | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat Enterprise Linux | RHEL-9 | pcssrc | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat Enterprise Linux | RHEL-9 | pcsx86_64 | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpaarch64 | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpppc64le | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmps390x | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpx86_64 | Advisory build | 0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Ubuntu | focal | ruby-rack-protection | Advisory build | 2.0.8.1-1ubuntu0.1~esm2 | USN-7664-1 |
| Ubuntu | focal | ruby-sinatra | Advisory build | 2.0.8.1-1ubuntu0.1~esm2 | USN-7664-1 |
| Ubuntu | focal | ruby-sinatra-contrib | Advisory build | 2.0.8.1-1ubuntu0.1~esm2 | USN-7664-1 |
| Ubuntu | jammy | ruby-rack-protection | Advisory build | 2.0.8.1-2+deb11u1build0.22.04.1 | USN-7664-1 |
| Ubuntu | jammy | ruby-sinatra | Advisory build | 2.0.8.1-2+deb11u1build0.22.04.1 | USN-7664-1 |
| Ubuntu | jammy | ruby-sinatra-contrib | Advisory build | 2.0.8.1-2+deb11u1build0.22.04.1 | USN-7664-1 |
| Ubuntu | xenial | ruby-sinatra | Advisory build | 1.4.7-3ubuntu0.1~esm2 | USN-7664-1 |
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | pcsaarch64 | Listed in advisory | Not stated | RLSA-2022:4661 |
| Rocky Linux | 8 | pcssrc | Listed in advisory | Not stated | RLSA-2022:4661 |
| Rocky Linux | 8 | pcsx86_64 | Listed in advisory | Not stated | RLSA-2022:4661 |
| Rocky Linux | 8 | pcs-snmpaarch64 | Listed in advisory | Not stated | RLSA-2022:4661 |
| Rocky Linux | 8 | pcs-snmpx86_64 | Listed in advisory | Not stated | RLSA-2022:4661 |
Description
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
3- https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e
- [debian-lts-announce] 20221028 [SECURITY] [DLA 3166-1] ruby-sinatra security update https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- df1c722f83d551f48c52a31f2d0fec28da51ba383df86e50accaf5e0e1b0d4c0
- Ingested
- 23 Sep 2026, 07:59:52 UTC
- Source record
- Official CVE record