# CVE-2016-2097: actionview contains Path Traversal vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 4.42% (percentile 92, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-vx9j-46rh-fqr8
- **Published:** 2016-04-07T23:00:00.000Z
- **Modified:** 2026-06-17T00:43:25.620Z

## 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)

## 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

- RubyGems `actionview`: affected \>= 3.0.0, \< 3.2.22.2; fixed 3.2.22.2, 4.1.14.2 (osv)
- RubyGems `actionpack`: affected \>= 3.0.0, \< 3.2.22.2; fixed 3.2.22.2, 4.1.14.2 (osv)
- n/a: see vendor advisory (nvd)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00006.html>
- vendor: <http://www.debian.org/security/2016/dsa-3509>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00083.html>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00080.html>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2016-2097>
- patch: <http://weblog.rubyonrails.org/2016/2/29/Rails-4-2-5-2-4-1-14-2-3-2-22-2-have-been-released/>
- patch: <https://github.com/rails/rails/commit/8a1d3ea617ffb0c8ae8467fa439bf63a3bfc4324>
- other: <https://groups.google.com/forum/message/raw?msg=rubyonrails-security/ddY6HgqB2z4/we0RasMZIAAJ>
- other: <http://www.securitytracker.com/id/1035122>
- other: <http://www.securityfocus.com/bid/83726>
- other: <https://github.com/rails/rails>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2016-2097.yml>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2016-2097.yml>
- other: <https://groups.google.com/forum/#!topic/rubyonrails-security/ddY6HgqB2z4>
- other: <https://web.archive.org/web/20160322002234/http://www.securitytracker.com/id/1035122>
- other: <https://web.archive.org/web/20200228015320/http://www.securityfocus.com/bid/83726>
- other: <https://web.archive.org/web/20201221115217/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/ddY6HgqB2z4/we0RasMZIAAJ>
- other: <http://weblog.rubyonrails.org/2016/2/29/Rails-4-2-5-2-4-1-14-2-3-2-22-2-have-been-released>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2016-2097>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-vx9j-46rh-fqr8> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2016-2097> · JSON: <https://flawdb.com/api/v1/entries/CVE-2016-2097>
