CVE-2019-5418 · Known exploited vulnerability

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

Actively exploited (CISA KEV)Ransomware use: UnknownPatch available

Summary

CVE-2019-5418 is a path traversal vulnerability in Rails Ruby on Rails, rated high severity with a CVSS base score of 7.5.

CISA added it to the Known Exploited Vulnerabilities catalogue on 7 July 2025, which means there is reliable evidence that attackers have exploited it.

It can be exploited remotely over a network without needing an account.

Rails Ruby on Rails contains a path traversal vulnerability in Action View. Specially crafted accept headers in combination with calls to `render file:` can cause arbitrary files on the target server to be rendered, disclosing the file contents.
CISA catalogue description

Key facts

Affected product
Rails · Ruby on Rails
CVSS severity
High7.5CVSS v3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS (exploitation likelihood, next 30 days)
98.50%Higher than 99.9% of all scored CVEs
Weakness (CWE)
CWE-22
Added to CISA KEV
CISA due date (US federal agencies)
First published (NVD)
NVD status
Analyzed

CISA required action

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

What UK organisations should do

01 Patch or mitigate

  • The vendor has published a fix. Apply the update to every affected instance, starting with internet-facing systems.
  • CISA's required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. CISA set a remediation due date of 28 July 2025 for US federal agencies; treat it as an indication of urgency rather than a deadline you can wait for.
  • If you cannot patch straight away, record the risk decision, limit access to the affected service and set a review date.

02 Check your exposure

  • Confirm whether you run Rails Ruby on Rails anywhere, including systems managed by suppliers or cloud providers.
  • Check whether the affected web interface is internet-facing, and rotate any credentials or keys stored in files the service can read.
  • Because this vulnerability is known to be exploited, check affected systems for signs of compromise before and after patching, not just for the missing update.

03 Monitor and respond

  • Search web server logs for requests containing directory traversal sequences such as ../ and encoded variants.
  • If you find signs of compromise, follow your incident response plan. UK organisations can report significant incidents to the National Cyber Security Centre (NCSC), and personal data breaches may need to be reported to the ICO within 72 hours.

Other exploited Rails Ruby on Rails vulnerabilities

  • CVE-2016-0752

    Ruby on Rails

    Directory Traversal

    High7.5
  • CVE-2014-0130

    Ruby on Rails

    Directory Traversal

    High7.5

Same weakness (CWE-22) in other products

  • CVE-2023-25914

    Danfoss · AK-SM 800A Series

    Path Traversal

    High8.8
  • CVE-2025-61624

    Fortinet · Multiple Products

    Path Traversal

    Medium6.5
  • CVE-2021-3199

    ONLYOFFICE · Docs

    Server Path Traversal

    Critical9.8
  • CVE-2026-104286

    Fortinet · FortiMail

    Path Traversal

    Critical9.8
  • CVE-2026-93616

    Check Point · Multiple Products

    Path Traversal

    Critical9.8
  • CVE-2026-66384

    JFrog · Artifactory

    Improper Limitation of a Pathname to a Restricted Directory

    Medium5.3

Sources and references

Last updated . Summary and guidance are generated from CISA, NVD and FIRST data; always confirm details in the vendor advisory.