Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rails
  4. ›
  5. CVE-2016-2097

CVE-2016-2097: Path Traversal

April 7, 2016 (updated August 8, 2019)

Directory traversal vulnerability in Action View in Ruby on Rails before allows remote attackers to read arbitrary files by leveraging an application’s unrestricted use of the render method and providing a .. in a pathname.

References

  • weblog.rubyonrails.org/2016/2/29/Rails-4-2-5-2-4-1-14-2-3-2-22-2-have-been-released/
  • nvd.nist.gov/vuln/detail/CVE-2016-2097

Code Behaviors & Features

Detect and mitigate CVE-2016-2097 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 3.2.22.2, all versions starting from 4.0.0.0 before 4.1.14.2

Fixed versions

  • 3.2.22.2
  • 4.1.14.2

Solution

Upgrade to versions 3.2.22.2, 4.1.14.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/rails/CVE-2016-2097.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:13 +0000.