CVE-2016-2097
No exploitation reported by the sources we read.
- Published2016-04-07
- WeaknessCWE-22
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2016-04-0723:59CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.0 | = 4.0.0 | no fix published | NVD |
| 4.0 | = 4.0.1 | no fix published | NVD |
| 4.0 | = 4.0.2 | no fix published | NVD |
| 4.0 | = 4.0.3 | no fix published | NVD |
| 4.0 | = 4.0.4 | no fix published | NVD |
| 4.0 | = 4.0.5 | no fix published | NVD |
| 4.0 | = 4.0.6 | no fix published | NVD |
| 4.0 | = 4.0.7 | no fix published | NVD |
| 4.0 | = 4.0.8 | no fix published | NVD |
| 4.0 | = 4.0.9 | no fix published | NVD |
| 4.0 | = 4.0.10 | no fix published | NVD |
| 4.1 | = 4.1.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.2 | ≤ 3.2.22.1 | no fix published | NVD |
| 4.1 | = 4.1.14.1 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.x | ≥ 4.0.0, < 4.1.14.2 | 4.1.14.2 | OSV |
| 3.x | ≥ 3.0.0, < 3.2.22.2 | 3.2.22.2 | OSV |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- railsDebian:14all versions · fixed in 2:4.2.5.2-1
- railsDebian:13all versions · fixed in 2:4.2.5.2-1
- railsDebian:12all versions · fixed in 2:4.2.5.2-1
- railsDebian:8all versions · fixed in 2:4.1.8-1+deb8u2
- rh-ror41-rubygem-actionpackRed Hat:rhel_software_collections:2::el7all versions · fixed in 1:4.1.5-4.el7and 1 other package
- rh-ror41-rubygem-actionpackRed Hat:rhel_software_collections:2::el6all versions · fixed in 1:4.1.5-4.el6and 1 other package
- rh-ror41-rubygem-actionviewRed Hat:rhel_software_collections:2::el7all versions · fixed in 0:4.1.5-5.el7and 1 other package
- rh-ror41-rubygem-actionviewRed Hat:rhel_software_collections:2::el6all versions · fixed in 0:4.1.5-5.el6and 1 other package
19 more package ranges on OSV.dev
Vendor advisories
rubygem-actionpack: directory traversal in Action View, incomplete CVE-2016-0752 fix
ruby193-rubygem-actionpack.src as a component of CloudForms Management Engine 5 · ruby193-rubygem-actionpack.src as a component of Red Hat Subscription Asset Manager · rubygem-actionpack.src as a component of Red Hat Subscription Asset Manager
Red Hat Security Advisory: ror40 security update
Red Hat Security Advisory: ruby193 security update
Red Hat Security Advisory: rh-ror41 security update
Fix
- Vendor fix Red Hat Product Security RHSA-2016:0454 · 64 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- No fix planned, says the vendor Red Hat Product Security CVE-2016-2097 · 3 productsWill not fix
Advisories and patches
- weblog.rubyonrails.orgPatch · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.05.3read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- NVDweakness (CWE)CWE-22read 2026-10-23
- FIRST EPSSEPSS score4.4 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2020-06-16
Identifiers
- EUVD-2017-0314same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-vx9j-46rh-fqr8same flawGitHub Advisory Database · CC-BY-4.0
- DLA-604-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-3509-1advisory covering several CVEsDebian · LicenseRef-unstated
- RHSA-2016:0454advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2016:0455advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2016:0456advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2016:0854-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2016:0967-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:15116-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Published
- 2016-04-07
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-vx9j-46rh-fqr8
Frequently asked questions
What is CVE-2016-2097?
Is CVE-2016-2097 actively exploited?
What is the CVSS score for CVE-2016-2097?
Running rubygem-actionpack? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-vx9j-46rh-fqr8
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0