cve.bz

CVE-2019-5418 Rails Ruby on Rails Path Traversal Vulnerability

7.5 highKEVExploitEPSS 99%Fix available

High (7.5) in Rails Ruby on Rails. In CISA KEV since 2025-07-07. EPSS 99% estimated probability of exploitation activity in the next 30 days. Fixed in actionview 4.2.11.1, 5.0.7.2, 5.1.6.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
99% (unchanged from 99% a week ago; 99% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2025-07-07, due 2025-07-28
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: partial, assessed 2025-07-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-5418 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-5418?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-5418?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-5418 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rubyonrails:railsfrom 3.0.0 before 4.2.11.1
rubyonrails:railsfrom 5.0.0 before 5.0.7.2
rubyonrails:railsfrom 5.1.0 before 5.1.6.2
rubyonrails:railsfrom 5.2.0 before 5.2.2.1
debian:debian_linux8.0
redhat:cloudforms4.7
opensuse:leap15.0
fedoraproject:fedora30
redhat:cloudforms4.6
redhat:software_collections1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-86g5-2wh3-gc9jRubyGemsactionview>=5.2.0 <5.2.2.15.2.2.1
GHSA-86g5-2wh3-gc9jRubyGemsactionview>=4.0.0 <4.2.11.14.2.11.1
GHSA-86g5-2wh3-gc9jRubyGemsactionview>=5.1.0 <5.1.6.25.1.6.2
GHSA-86g5-2wh3-gc9jRubyGemsactionview>=5.0.0 <5.0.7.25.0.7.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8rails2:4.1.8-1+deb8u5DLA-1739-1
Debian12, 13, 14rails2:5.2.2.1+dfsg-1DEBIAN-CVE-2019-5418
UbuntuPro:16.04:LTSrails2:4.2.6-1ubuntu0.1~esm2UBUNTU-CVE-2019-5418 USN-7646-1
UbuntuPro:18.04:LTSrails2:4.2.10-0ubuntu4+esm2UBUNTU-CVE-2019-5418 USN-7646-1
Red Hatcloudforms_managementengine:5.9::el7cfme, cfme-gemset, cfme-appliance and 6 more0:5.9.9.3-1.el7cfRHSA-2019:1289
Red Hatcloudforms_managementengine:5.10::el7ansible-tower, ansible-tower-ui, ansible-tower-setup and 3 more0:3.4.3-1.el7atRHSA-2019:0796
Red Hatcloudforms_managementengine:5.10::el7cfme, cfme-gemset, cfme-appliance and 6 more0:5.10.3.3-1.el7cfRHSA-2019:0796
Red Hatrhel_software_collections:3::el6rh-ror42-rubygem-actionpack, rh-ror42-rubygem-actionpack-doc1:4.2.6-5.el6RHSA-2019:1149
Red Hatrhel_software_collections:3::el6rh-ror50-rubygem-actionpack, rh-ror50-rubygem-actionpack-doc1:5.0.1-2.el6RHSA-2019:1147
Red Hatrhel_software_collections:3::el7rh-ror42-rubygem-actionpack, rh-ror42-rubygem-actionpack-doc1:4.2.6-5.el7RHSA-2019:1149
Red Hatrhel_software_collections:3::el7rh-ror50-rubygem-actionpack, rh-ror50-rubygem-actionpack-doc1:5.0.1-2.el7RHSA-2019:1147
SUSEEnterprise Storage 4, OpenStack Cloud 7, OpenStack Cloud Crowbar 8rubygem-actionpack-4_24.2.9-7.6.1SUSE-SU-2019:0915-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morermt-server2.6.5-3.34.1SUSE-SU-2020:3147-1
SUSELinux Enterprise Module for Public Cloud 15 SP1, Linux Enterprise Module for Server Applications 15 SP1rmt-server2.6.5-3.18.1SUSE-SU-2020:3160-1
SUSELinux Enterprise Module for Public Cloud 15 SP2, Linux Enterprise Module for Server Applications 15 SP2rmt-server2.6.5-3.3.1SUSE-SU-2020:3036-1
openSUSELeap 15.0rubygem-actionpack-5_15.1.4-lp150.2.3.1openSUSE-SU-2019:1344-1
openSUSELeap 15.1rmt-server2.6.5-lp151.2.18.2openSUSE-SU-2020:2000-1
openSUSELeap 15.2rmt-server2.6.5-lp152.2.3.1openSUSE-SU-2020:1993-1
openSUSETumbleweedrubygem-actioncable-6.06.0.4.4-1.1openSUSE-SU-2024:11818-1
openSUSETumbleweedrubygem-actionmailbox-6.06.0.4.4-1.1openSUSE-SU-2024:11819-1
openSUSETumbleweedrubygem-actionmailer-6.06.0.4.4-1.1openSUSE-SU-2024:11820-1
openSUSETumbleweedrubygem-actionpack-6.06.0.4.4-1.1openSUSE-SU-2024:11821-1
openSUSETumbleweedrubygem-actiontext-6.06.0.4.4-1.1openSUSE-SU-2024:11822-1
openSUSETumbleweedrubygem-actionview-6.06.0.4.4-1.1openSUSE-SU-2024:11823-1
openSUSETumbleweedrubygem-activejob-6.06.0.4.4-1.1openSUSE-SU-2024:11824-1
openSUSETumbleweedrubygem-activemodel-6.06.0.4.4-1.1openSUSE-SU-2024:11825-1
openSUSETumbleweedrubygem-activerecord-6.06.0.4.4-1.1openSUSE-SU-2024:11826-1
4 more for openSUSE in the JSON and on openSUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue did affect the versions of rh-ror42-rubygem-actionpack and rh-ror50-rubygem-actionpack as shipped with Red Hat Software Collections.

ProductPackageStateAdvisory
CloudForms Management Engine 5.10ansible-tower-0:3.4.3-1.el7atFixed 2019-04-23RHSA-2019:0796
CloudForms Management Engine 5.10cfme-0:5.10.3.3-1.el7cfFixed 2019-04-23RHSA-2019:0796
CloudForms Management Engine 5.10cfme-amazon-smartstate-0:5.10.3.3-1.el7cfFixed 2019-04-23RHSA-2019:0796
CloudForms Management Engine 5.10cfme-appliance-0:5.10.3.3-1.el7cfFixed 2019-04-23RHSA-2019:0796
CloudForms Management Engine 5.10cfme-gemset-0:5.10.3.3-1.el7cfFixed 2019-04-23RHSA-2019:0796
CloudForms Management Engine 5.9cfme-0:5.9.9.3-1.el7cfFixed 2019-05-29RHSA-2019:1289
CloudForms Management Engine 5.9cfme-amazon-smartstate-0:5.9.9.3-1.el7cfFixed 2019-05-29RHSA-2019:1289
CloudForms Management Engine 5.9cfme-appliance-0:5.9.9.3-1.el7cfFixed 2019-05-29RHSA-2019:1289
CloudForms Management Engine 5.9cfme-gemset-0:5.9.9.3-1.el7cfFixed 2019-05-29RHSA-2019:1289
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ror50-rubygem-actionpack-1:5.0.1-2.el6Fixed 2019-05-13RHSA-2019:1147
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-ror42-rubygem-actionpack-1:4.2.6-5.el6Fixed 2019-05-13RHSA-2019:1149
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ror50-rubygem-actionpack-1:5.0.1-2.el7Fixed 2019-05-13RHSA-2019:1147
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ror42-rubygem-actionpack-1:4.2.6-5.el7Fixed 2019-05-13RHSA-2019:1149
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ror50-rubygem-actionpack-1:5.0.1-2.el7Fixed 2019-05-13RHSA-2019:1147
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-ror42-rubygem-actionpack-1:4.2.6-5.el7Fixed 2019-05-13RHSA-2019:1149
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-ror50-rubygem-actionpack-1:5.0.1-2.el7Fixed 2019-05-13RHSA-2019:1147
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-ror42-rubygem-actionpack-1:4.2.6-5.el7Fixed 2019-05-13RHSA-2019:1149
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-ror50-rubygem-actionpack-1:5.0.1-2.el7Fixed 2019-05-13RHSA-2019:1147
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-ror42-rubygem-actionpack-1:4.2.6-5.el7Fixed 2019-05-13RHSA-2019:1149

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-5418.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Rails File Content Disclosure
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Rails Arbitrary File Disclosure Attempt sid 2027096

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON