Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. sinatra
  4. ›
  5. CVE-2018-7212

CVE-2018-7212: Path Traversal

February 18, 2018 (updated March 19, 2018)

An issue was discovered in rack-protection/lib/rack/protection/path_traversal.rb in Sinatra on Windows. Path traversal is possible via backslash characters.

References

  • github.com/sinatra/sinatra/pull/1379
  • nvd.nist.gov/vuln/detail/CVE-2018-7212

Code Behaviors & Features

Detect and mitigate CVE-2018-7212 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 up to 2.0.1

Fixed versions

  • 2.0.2

Solution

Upgrade to version 2.0.2 or above.

Impact 5.3 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

gem/sinatra/CVE-2018-7212.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:10 +0000.