CVE-2022-29970
mediumpriority · track · 31EPSS 0.021 · 82 %ileDEEURUUSEPSS · scored 2026-10-27
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (25)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-0267Red Hat Enterprise Linux (pcs): Schwachstelle ermöglicht Offenlegung von InformationenDeutsch2022-05-15csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Red Hat Enterprise Linux (pcs) ausnutzen, um Informationen offenzulegen.
- GHSA-qp49-3pvw-x4m5sinatra does not validate expanded path matches2022-05-03ghsa · osvUS
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (20)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2022-29970cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-29970/cnnvd
- https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10ecnnvd
- https://lists.debian.org/debian-lts-announce/2022/10/msg00034.htmlcnnvd
- https://packetstormsecurity.com/files/167175/Red-Hat-Security-Advisory-2022-2256-01.htmlcnnvd
- https://packetstormsecurity.com/files/167219/Red-Hat-Security-Advisory-2022-4661-01.htmlcnnvd
- https://packetstormsecurity.com/files/167373/Red-Hat-Security-Advisory-2022-4587-01.htmlcnnvd
- https://packetstormsecurity.com/files/169918/Red-Hat-Security-Advisory-2022-8506-01.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan