Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Priority LOW 37CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure, Code execution
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 10 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22, CWE-426 and the CVSS impact.
Summary
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Why it matters now
EPSS 0.02137 82nd percentileScored 2026-11-07
Fix Partial sinatra (RubyGems): 2.2.0Red Hat: 6 advisoriesRed Hat: 10 fixed, 3 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | sinatra (RubyGems) | before 2.2.0 | 2.2.0 | Patch available | GHSA-qp49-3pvw-x4m5 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- sinatra (RubyGems) Vendor— Affected before 2.2.0 Fixed in 2.2.0 Patch available GHSA-qp49-3pvw-x4m5
Remediation
- Fix · GHSA-qp49-3pvw-x4m5 sinatra (RubyGems) Fixed in 2.2.0 Advisory →
Red Hat 6 advisories
- RHSA-2022:8506 Released 2022-11-16 · Red Hat rating ImportantSatellite 6.12 Release
- Red Hat Satellite 6.12 for RHEL 8 candlepin-4.1.15-1.el8sat, candlepin-selinux-4.1.15-1.el8sat, foreman-3.3.0.17-1.el8sat +19
- RHSA-2022:4661 Released 2022-05-18 · Red Hat rating Importantpcs security update
- Red Hat Enterprise Linux HighAvailability (v. 8) pcs-0.10.12-6.el8_6.1, pcs-snmp-0.10.12-6.el8_6.1
- Red Hat Enterprise Linux ResilientStorage (v. 8) pcs-0.10.12-6.el8_6.1, pcs-snmp-0.10.12-6.el8_6.1
- RHSA-2022:4587 Released 2022-05-18 · Red Hat rating Importantpcs security update
- Red Hat Enterprise Linux High Availability (v. 9) pcs-0.11.1-10.el9_0.1, pcs-snmp-0.11.1-10.el9_0.1
- Red Hat Enterprise Linux Resilient Storage (v. 9) pcs-0.11.1-10.el9_0.1, pcs-snmp-0.11.1-10.el9_0.1
Show 3 more Red Hat advisories
- RHSA-2022:2253 Released 2022-05-16 · Red Hat rating Importantpcs security update
- Red Hat Enterprise Linux High Availability EUS (v. 8.2) pcs-0.10.4-6.el8_2.2, pcs-snmp-0.10.4-6.el8_2.2
- Red Hat Enterprise Linux Resilient Storage EUS (v. 8.2) pcs-0.10.4-6.el8_2.2, pcs-snmp-0.10.4-6.el8_2.2
- RHSA-2022:2256 Released 2022-05-16 · Red Hat rating Importantpcs security update
- Red Hat Enterprise Linux HighAvailability EUS (v.8.4) pcs-0.10.8-1.el8_4.1, pcs-snmp-0.10.8-1.el8_4.1
- Red Hat Enterprise Linux ResilientStorage EUS (v.8.4) pcs-0.10.8-1.el8_4.1, pcs-snmp-0.10.8-1.el8_4.1
- RHSA-2022:2255 Released 2022-05-16 · Red Hat rating Importantpcs security update
- Red Hat Enterprise Linux High Availability E4S (v. 8.1) pcs-0.10.2-4.el8_1.2, pcs-snmp-0.10.2-4.el8_1.2
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Storage 3 | Affected | No fix yet |
| Red Hat Enterprise Linux High Availability (v. 9) | Fixed | RHSA-2022:4587 |
| Red Hat Enterprise Linux High Availability E4S (v. 8.1) | Fixed | RHSA-2022:2255 |
| Red Hat Enterprise Linux High Availability EUS (v. 8.2) | Fixed | RHSA-2022:2253 |
| Red Hat Enterprise Linux HighAvailability (v. 8) | Fixed | RHSA-2022:4661 |
| Red Hat Enterprise Linux HighAvailability EUS (v.8.4) | Fixed | RHSA-2022:2256 |
| Red Hat Enterprise Linux Resilient Storage (v. 9) | Fixed | RHSA-2022:4587 |
| Red Hat Enterprise Linux Resilient Storage EUS (v. 8.2) | Fixed | RHSA-2022:2253 |
| Red Hat Enterprise Linux ResilientStorage (v. 8) | Fixed | RHSA-2022:4661 |
| Red Hat Enterprise Linux ResilientStorage EUS (v.8.4) | Fixed | RHSA-2022:2256 |
| Red Hat Satellite 6.12 for RHEL 8 | Fixed | RHSA-2022:8506 |
Not affected: 1 product
- Red Hat Satellite 6.12 for RHEL 8
Timeline
- 2026-10-02 Threatist record created from CVE-2022-29970
- 2026-10-03 Alias added: GHSA-qp49-3pvw-x4m5
References
Patch 1
Advisory 2
Sources
- CVE-2022-29970 · CVE Program
- CVE-2022-29970 · NVD
- FIRST EPSS
- GHSA-qp49-3pvw-x4m5 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-29970 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences