An issue was discovered in rack-protection/lib/rack/protection/path_traversal.rb in…
Priority LOW 28CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
An issue was discovered in rack-protection/lib/rack/protection/path_traversal.rb in Sinatra 2.x before 2.0.1 on Windows. Path traversal is possible via backslash characters.
Why it matters now
EPSS 0.01838 79th percentileScored 2026-11-07
Fix Fixed sinatra (RubyGems): 2.0.1
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) | 2.0.0.beta1 to before 2.0.1 | 2.0.1 | Patch available | GHSA-h29f-7f56-j8wh |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- sinatra (RubyGems) Vendor— Affected 2.0.0.beta1 to before 2.0.1 Fixed in 2.0.1 Patch available GHSA-h29f-7f56-j8wh
CPE configurations NVD · 10
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sinatrarb:sinatra:2.0.0:*:*:*:*:*:*:* | 2.0.0 | Vulnerable | Sinatrarb |
| cpe:2.3:a:sinatrarb:sinatra:2.0.0:beta2:*:*:*:*:*:* | 2.0.0 beta2 | Vulnerable | Sinatrarb |
| cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc1:*:*:*:*:*:* | 2.0.0 rc1 | Vulnerable | Sinatrarb |
| cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc2:*:*:*:*:*:* | 2.0.0 rc2 | Vulnerable | Sinatrarb |
| cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc3:*:*:*:*:*:* | 2.0.0 rc3 | Vulnerable | Sinatrarb |
| cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc4:*:*:*:*:*:* | 2.0.0 rc4 | Vulnerable | Sinatrarb |
| cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc5:*:*:*:*:*:* | 2.0.0 rc5 | Vulnerable | Sinatrarb |
| cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc6:*:*:*:*:*:* | 2.0.0 rc6 | Vulnerable | Sinatrarb |
| cpe:2.3:a:sinatrarb:sinatra:2.0.1:rc1:*:*:*:*:*:* | 2.0.1 rc1 | Vulnerable | Sinatrarb |
| cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Microsoft |
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:*:*:*:*:*:*:* Versions 2.0.0 Vulnerable ·Sinatrarb
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:beta2:*:*:*:*:*:* Versions 2.0.0 beta2 Vulnerable ·Sinatrarb
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc1:*:*:*:*:*:* Versions 2.0.0 rc1 Vulnerable ·Sinatrarb
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc2:*:*:*:*:*:* Versions 2.0.0 rc2 Vulnerable ·Sinatrarb
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc3:*:*:*:*:*:* Versions 2.0.0 rc3 Vulnerable ·Sinatrarb
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc4:*:*:*:*:*:* Versions 2.0.0 rc4 Vulnerable ·Sinatrarb
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc5:*:*:*:*:*:* Versions 2.0.0 rc5 Vulnerable ·Sinatrarb
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc6:*:*:*:*:*:* Versions 2.0.0 rc6 Vulnerable ·Sinatrarb
- cpe:2.3:a:sinatrarb:sinatra:2.0.1:rc1:*:*:*:*:*:* Versions 2.0.1 rc1 Vulnerable ·Sinatrarb
- cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft
Remediation
- Fix · GHSA-h29f-7f56-j8wh sinatra (RubyGems) Fixed in 2.0.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
Not affected: 6 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat OpenStack Platform 10 (Newton) Operational Tools
- Red Hat Satellite 6
- Red Hat Software Collections
- Red Hat Storage 3
Timeline
- 2026-10-02 Threatist record created from CVE-2018-7212
- 2026-10-03 Alias added: GHSA-h29f-7f56-j8wh
References
More Sinatrarb Sinatra vulnerabilities
- TI-2022-22408 Sinatra vulnerable to Reflected File Download attack CVSS 3.1HIGH 8.8
- TI-2022-12310 Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files. CVSS 3.1HIGH 7.5
- TI-2018-08315 Sinatra before 2.0.2 has XSS via the 400 Bad Request page that occurs upon a params parser exception. CVSS 3.0MEDIUM 6.1
- TI-2025-38270 Sinatra has ReDoS vulnerability in ETag header value generation CVSS 4.0LOW 2.7
Sources
- CVE-2018-7212 · CVE Program
- CVE-2018-7212 · NVD
- FIRST EPSS
- GHSA-h29f-7f56-j8wh · GitHub Advisory Database · CC BY 4.0
- CVE-2018-7212 · 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