cve.bz

CVE-2018-7212 sinatrarb sinatra: Path traversal

5.3 mediumEPSS 1.8%Fix available

Medium (5.3) in sinatrarb sinatra. EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in sinatra 2.0.1.

On this page
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.

Severity

CVSS 3.0

5.3 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • sinatra (RubyGems): fixed in 2.0.1

Ask an AI about this CVE

Show the promptExplain CVE-2018-7212 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-7212?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-7212?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-7212 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sinatrarb:sinatra2.0.0
sinatrarb:sinatra2.0.0:beta2
sinatrarb:sinatra2.0.0:rc1
sinatrarb:sinatra2.0.0:rc2
sinatrarb:sinatra2.0.0:rc3
sinatrarb:sinatra2.0.0:rc4
sinatrarb:sinatra2.0.0:rc5
sinatrarb:sinatra2.0.0:rc6
sinatrarb:sinatra2.0.1:rc1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h29f-7f56-j8whRubyGemssinatra>=2.0.0.beta1 <2.0.12.0.1

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6pcsNot affected
Red Hat Enterprise Linux 7pcsNot affected
Red Hat OpenStack Platform 10 (Newton) Operational Toolsrubygem-sinatraNot affected
Red Hat Satellite 6rubygem-sinatraNot affected
Red Hat Satellite 6tfm-ror51-rubygem-sinatraNot affected
Red Hat Software Collectionsrh-ror50-rubygem-sinatraNot affected
Red Hat Storage 3rubygem-sinatraNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-7212.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON