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

CVE-2018-7212: Path traversal on Windows

February 18, 2018 (updated March 19, 2018)

Path traversal is possible via backslash characters on Windows. An attacker could access arbitrary files and directories stored on the file system.

References

  • github.com/sinatra/rack-protection/pull/120
  • github.com/sinatra/rack-protection/pull/120/commits/4239c2f189a73dfc93e957fc97adcbcbc0ed31c6
  • github.com/sinatra/sinatra/commit/d17aa95f5056c52daf5d7c3170fbfd831dc96381
  • github.com/sinatra/sinatra/pull/1379

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 before 2.0.1

Fixed versions

  • 2.0.1

Solution

Upgrade to version 2.0.1 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/rack-protection/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:17 +0000.