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.
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-07 | Published |
| 2017-10-24 | Package advisory GHSA-vx9j-46rh-fqr8 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 4.42% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-vx9j-46rh-fqr8 | actionview (RubyGems) | 3.2.22.2 |
| GHSA-vx9j-46rh-fqr8 | actionview (RubyGems) | 4.1.14.2 |
| GHSA-vx9j-46rh-fqr8 | actionpack (RubyGems) | 3.2.22.2 |
| GHSA-vx9j-46rh-fqr8 | actionpack (RubyGems) | 4.1.14.2 |
Also known as: GHSA-vx9j-46rh-fqr8
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-126079 | 2026-11-10 | 6.1 | Action View: Possible XSS vulnerability in Action View text helpers |
| CVE-2026-126078 | 2026-11-10 | 6.1 | Action View: Possible XSS vulnerability in Action View highlight helper |
| CVE-2026-126070 | 2026-11-10 | 6.1 | Action View: Possible XSS vulnerability in Action View strip_tags |
| CVE-2026-126069 | 2026-11-10 | 4.7 | Action View: Possible XSS vulnerability in Action View tag helpers |
| CVE-2026-33168 | 2026-03-23 | 2.3 | Rails has a possible XSS vulnerability in its Action View tag helpers |
| CVE-2023-23913 | 2025-01-09 | 6.3 | same package: actionview (RubyGems) |
| CVE-2022-27777 | 2022-05-26 | 6.1 | same package: actionview (RubyGems) |
| CVE-2020-15169 | 2020-09-11 | 6.1 | XSS 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.