Live threats

All CVEs / Sinatrarb

CVE-2018-7212Sinatrarb Sinatra

Medium 5.3 No auth needed

Priority
47
CVSS 3.0
5.3
EPSS
1.8%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Feb 18, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sinatra.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems sinatra ≥ 2.0.0.beta1 < 2.0.1 2.0.1 gem "sinatra", ">= 2.0.1"

Per OSV / GitHub Advisories (GHSA-h29f-7f56-j8wh). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sinatrarbsinatra2.0.0
sinatrarbsinatra2.0.0
sinatrarbsinatra2.0.0
sinatrarbsinatra2.0.0
sinatrarbsinatra2.0.0
sinatrarbsinatra2.0.0
sinatrarbsinatra2.0.0
sinatrarbsinatra2.0.0
sinatrarbsinatra2.0.1

Official sources

References

Links published by the sources. Open them with care.