Patchfirst
CVE-2019-5418 KEVPublic exploit High · 7.5 EPSS 98.5%

Rails Ruby on Rails Path Traversal Vulnerability

Rails · Ruby on Rails

Summary

A path traversal flaw in Action View, the view rendering component of Ruby on Rails, lets specially crafted Accept headers expose the contents of arbitrary files on the server's filesystem in affected versions prior to 5.2.2.1, 5.1.6.2, 5.0.7.2, and 4.2.11.1, and in version 3. An attacker needs only network access to the application, with no authentication, no user interaction, and no special configuration required to trigger the disclosure.

Official description · NVD

There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted accept headers can cause contents of arbitrary files on the target system's filesystem to be exposed.

Breakdown
68.2 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 6 years after disclosure. Public exploit code (PoC-in-GitHub) was available 11 days before disclosure.

  1. Public exploit codePoC-in-GitHub11 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidenceAdded to CISA KEVEU database agrees+6 yrs

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

See the family tree

7 fixes in actionview over 4 years. The latest fix listed for actionview is 6.0.3.1.

Fixes in actionviewRubyGems package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.2.5.1CVE-2016-075216 Feb 2016KEV
  2. 4.2.11.3CVE-2020-81632 Jul 2020
  3. 5.0.0.1CVE-2016-63167 Sep 2016
  4. 5.2.2.1CVE-2019-541827 Mar 2019KEV
  5. 6.0.0.beta3CVE-2019-541927 Mar 2019
  6. 6.0.2.2CVE-2020-526719 Mar 2020
  7. 6.0.3.1CVE-2020-816719 Jun 2020Latest listed

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
AI mapping from the description · how it is exploited

Unauthenticated crafted HTTP headers exploit public-facing web app

specially crafted accept headers can cause
From the official description (NVD) Original (opens in a new tab) ↗

CollectionTA0009

Data from Local System T1005 Medium
AI mapping from the description · primary impact

Arbitrary file contents read from local filesystem

contents of arbitrary files on the target system's filesystem to be exposed
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 163 general rules for its techniques

Rules for this CVE

0 that reference CVE-2019-5418 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: actionview.

RubyGemsactionviewGHSA-86g5-2wh3-gc9j

Upgrade to 5.2.4.2 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2020-5267).

Gemfilegem "actionview", ">= 5.2.4.2"

First fixed in 5.2.2.1 for CVE-2019-5418.

Affected versions, by release line

If you runUpgrade to
5.2.0 up to 5.2.2.15.2.4.2first fix for this CVE: 5.2.2.1
5.1.0 up to 5.1.6.2

Still affected on this line by CVE-2020-5267 (fixed in 5.2.4.2, a newer line).

5.1.6.2
5.0.0 up to 5.0.7.2

Still affected on this line by CVE-2020-5267 (fixed in 5.2.4.2, a newer line).

5.0.7.2
4.0.0 up to 4.2.11.1

Still affected on this line by CVE-2020-5267 (fixed in 5.2.4.2, a newer line).

4.2.11.3first fix for this CVE: 4.2.11.1

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

14 links, grouped by NVD tag (12 duplicates merged)
↑ ↓ chooseEnter openEsc close