KeygraphLabs · CVE MCP

CVE-2016-2097 · redhat

CVE-2016-2097

Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.2 and 4.x before 4.1.14.2 allows remote attackers to read arbitrary files by leveraging an application's unrestricted use of the render method and providing a .. (dot dot) in a pathname. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-0752.

Published 2016-04-07, last changed 2026-06-17. Weakness: CWE-22.

CVSS
5.3
medium, from NVD
EPSS
4.42%
percentile 91.6%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: actionview 3.2.22.2, 4.1.14.2 (RubyGems); actionpack 3.2.22.2, 4.1.14.2 (RubyGems) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in rails/rails by 8a1d3ea617. Functions changed by the fix: _process_format, _normalize_args. Regression tests: actionpack/test/controller/new_base/render_file_test.rb, actionpack/test/controller/new_base/render_template_test.rb, actionpack/test/controller/render_test.rb, actionview/test/actionpack/controller/render_test.rb. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2016-04-07Published
2017-10-24Package advisory GHSA-vx9j-46rh-fqr8
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 4.42%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-vx9j-46rh-fqr8actionview (RubyGems)3.2.22.2
GHSA-vx9j-46rh-fqr8actionview (RubyGems)4.1.14.2
GHSA-vx9j-46rh-fqr8actionpack (RubyGems)3.2.22.2
GHSA-vx9j-46rh-fqr8actionpack (RubyGems)4.1.14.2

Also known as: GHSA-vx9j-46rh-fqr8

Related

CVEPublishedCVSSSummary
CVE-2026-1260792026-11-106.1Action View: Possible XSS vulnerability in Action View text helpers
CVE-2026-1260782026-11-106.1Action View: Possible XSS vulnerability in Action View highlight helper
CVE-2026-1260702026-11-106.1Action View: Possible XSS vulnerability in Action View strip_tags
CVE-2026-1260692026-11-104.7Action View: Possible XSS vulnerability in Action View tag helpers
CVE-2026-331682026-03-232.3Rails has a possible XSS vulnerability in its Action View tag helpers
CVE-2023-239132025-01-096.3same package: actionview (RubyGems)
CVE-2022-277772022-05-266.1same package: actionview (RubyGems)
CVE-2020-151692020-09-116.1XSS in Action View

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2016-2097, or call /api/v1/vulnerabilities/CVE-2016-2097. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org