CVE-2016-2097
actionview contains Path Traversal vulnerability
Also known as GHSA-vx9j-46rh-fqr8
Mitigation
- Upgrade actionview to one of 3.2.22.2, 4.1.14.2 (or later in the same release line).
- Upgrade actionpack to one of 3.2.22.2, 4.1.14.2 (or later in the same release line).
Who should check
- Projects that depend on RubyGems package actionview (>= 3.0.0, < 3.2.22.2)
- Projects that depend on RubyGems package actionpack (>= 3.0.0, < 3.2.22.2)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- actionview >= 3.0.0, < 3.2.22.2; actionpack >= 3.0.0, < 3.2.22.2
- Fixed in
- 3.2.22.2, 4.1.14.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 4.42% chance of exploitation in 30 days (percentile 92, 2026-11-26)
- CWE
- CWE-22
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems actionview | >= 3.0.0, < 3.2.22.2 | 3.2.22.2, 4.1.14.2 | osv |
| RubyGems actionpack | >= 3.0.0, < 3.2.22.2 | 3.2.22.2, 4.1.14.2 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2016-2097. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2016-2097.md Affected: actionview >= 3.0.0, < 3.2.22.2; actionpack >= 3.0.0, < 3.2.22.2 Fixed in: 3.2.22.2, 4.1.14.2 Steps: 1. Search this machine and project for actionview (RubyGems), actionpack (RubyGems), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00006.html
- http://www.debian.org/security/2016/dsa-3509
- http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00083.html
- http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00080.html
- https://nvd.nist.gov/vuln/detail/CVE-2016-2097
Patches
Other
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/ddY6HgqB2z4/we0RasMZIAAJ
- http://www.securitytracker.com/id/1035122
- http://www.securityfocus.com/bid/83726
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2016-2097.yml
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2016-2097.yml
- https://groups.google.com/forum/#!topic/rubyonrails-security/ddY6HgqB2z4
- https://web.archive.org/web/20160322002234/http://www.securitytracker.com/id/1035122
- https://web.archive.org/web/20200228015320/http://www.securityfocus.com/bid/83726
- https://web.archive.org/web/20201221115217/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/ddY6HgqB2z4/we0RasMZIAAJ
- http://weblog.rubyonrails.org/2016/2/29/Rails-4-2-5-2-4-1-14-2-3-2-22-2-have-been-released
FAQ
Is CVE-2016-2097 being exploited?
There is no confirmed exploitation: CVE-2016-2097 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.42% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2016-2097?
Medium: CVSS 5.3 (v3.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2016-2097?
actionview >= 3.0.0, < 3.2.22.2; actionpack >= 3.0.0, < 3.2.22.2.
Is there a fix for CVE-2016-2097?
Yes. Fixed in 3.2.22.2, 4.1.14.2. Upgrade actionview to one of 3.2.22.2, 4.1.14.2 (or later in the same release line). Upgrade actionpack to one of 3.2.22.2, 4.1.14.2 (or later in the same release line).
How do I check if I'm affected by CVE-2016-2097?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.