CVE-2018-7212Sinatrarb Sinatra
Medium 5.3 No auth needed
Follow: this CVE · Sinatrarb · Sinatrarb Sinatra We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Sinatra.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| sinatrarb | sinatra | 2.0.0 |
| sinatrarb | sinatra | 2.0.0 |
| sinatrarb | sinatra | 2.0.0 |
| sinatrarb | sinatra | 2.0.0 |
| sinatrarb | sinatra | 2.0.0 |
| sinatrarb | sinatra | 2.0.0 |
| sinatrarb | sinatra | 2.0.0 |
| sinatrarb | sinatra | 2.0.0 |
| sinatrarb | sinatra | 2.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Issue Tracking Third Party Advisory