{"answers":{"affected":"8 open source packages ship an affected version, including actionview. It affects 6 products.","exploited":"Yes. Attackers have exploited CVE-2019-5418 in the wild since at least 7 Jul 2025.","fix":"Upgrade actionview to a fixed version for your release line: 4.2.11.1, 5.0.7.2, 5.1.6.2 or 5.2.2.1. US federal agencies must fix it by 28 Jul 2025.","what":"CVE-2019-5418 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 27 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-5418 and fix it if it is affected.\n\nWhat it is: CVE-2019-5418 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 27 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2019-5418 in the wild since at least 7 Jul 2025.\n\nAffected packages and fixed versions:\n- actionview (RubyGems): affected from 4.0.0; fixed in 4.2.11.1\n- actionview (RubyGems): affected from 4.0.0; fixed in 4.2.11.1\n- actionview (RubyGems): affected from 5.0.0; fixed in 5.0.7.2\n- actionview (RubyGems): affected from 5.0.0; fixed in 5.0.7.2\n- actionview (RubyGems): affected from 5.1.0; fixed in 5.1.6.2\n- actionview (RubyGems): affected from 5.1.0; fixed in 5.1.6.2\n- actionview (RubyGems): affected from 5.2.0; fixed in 5.2.2.1\n- actionview (RubyGems): affected from 5.2.0; fixed in 5.2.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-5418/ (Markdown: https://insights.sbomify.com/CVE-2019-5418/index.md)","id":"CVE-2019-5418","markdown":"https://insights.sbomify.com/CVE-2019-5418/index.md","name":"CVE-2019-5418","record":{"aliases":["DEBIAN-CVE-2019-5418","GHSA-86g5-2wh3-gc9j","UBUNTU-CVE-2019-5418","USN-7646-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails","requires_auth":"none","summary":"Attackers can read arbitrary files on the server by sending specially crafted Accept headers in Ruby on Rails applications.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"leap","vendor":"opensuse"},{"product":"cloudforms","vendor":"redhat"},{"product":"software_collections","vendor":"redhat"},{"product":"rails","vendor":"rubyonrails"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"There is a File Content Disclosure vulnerability in Action View \u003c5.2.2.1, \u003c5.1.6.2, \u003c5.0.7.2, \u003c4.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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":1,"first_seen":"2019-03-16","github_poc":12,"max_poc_stars":201,"metasploit":1,"nuclei":1,"refs":[{"date":"2019-03-16T11:58:18Z","kind":"github_poc","ref":"https://github.com/mpgn/CVE-2019-5418","stars":201,"title":"CVE-2019-5418 - File Content Disclosure on Ruby on Rails"},{"date":"2019-03-23T02:52:31Z","kind":"github_poc","ref":"https://github.com/mpgn/Rails-doubletap-RCE","stars":132,"title":"RCE on Rails 5.2.2 using a path traversal (CVE-2019-5418) and a deserialization of Ruby objects (CVE-2019-5420)"},{"date":"2019-03-19T15:38:01Z","kind":"github_poc","ref":"https://github.com/brompwnie/CVE-2019-5418-Scanner","stars":36,"title":"A multi-threaded Golang scanner to identify Ruby endpoints vulnerable to CVE-2019-5418"},{"date":"2019-03-18T16:09:13Z","kind":"github_poc","ref":"https://github.com/omarkurt/CVE-2019-5418","stars":5,"title":"File Content Disclosure on Rails Test Case - CVE-2019-5418"},{"date":"2019-11-19T09:40:06Z","kind":"github_poc","ref":"https://github.com/random-robbie/CVE-2019-5418","stars":5,"title":null},{"date":"2019-04-01T17:02:57Z","kind":"github_poc","ref":"https://github.com/Bad3r/RailroadBandit","stars":3,"title":"a demo for Ruby on Rails CVE-2019-5418"},{"date":"2022-10-17T09:04:43Z","kind":"github_poc","ref":"https://github.com/kailing0220/CVE-2019-5418","stars":2,"title":"Ruby on Rails是一个 Web 应用程序框架,是一个相对较新的 Web 应用程序框架，构建在 Ruby 语言之上。这个漏洞主要是由于Ruby on Rails使用了指定参数的render file来渲染应用之外的视图，我们可以通过修改访问某控制器的请求包，通过“…/…/…/…/”来达到路径穿越的目的，然后再通过“{{”来进行模板查询路径的闭合，使得所要访问的文件被当做外部模板来解析。"},{"date":"2019-03-21","kind":"exploitdb","ref":"46585","stars":null,"title":"Rails 5.2.1 - Arbitrary File Content Disclosure"}],"tier":"exploited"},"has_fix":true,"headline":"Rails Ruby on Rails Path Traversal","id":"CVE-2019-5418","indexable":true,"kev":{"dateAdded":"2025-07-07","dueDate":"2025-07-28","knownRansomwareCampaignUse":"Unknown","product":"Ruby on Rails","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","vendorProject":"Rails","vulnerabilityName":"Rails Ruby on Rails Path Traversal Vulnerability"},"kind":"cve","links":{"ecosystem":"RubyGems","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","opensuse:leap","redhat:software_collections","rubyonrails:rails"],"type":"path_traversal","year":"2019"},"n_packages":8,"n_references":12,"next":{"headline":"Denial of Service Vulnerability in Action View","id":"CVE-2019-5419"},"packages":[{"ecosystem":"RubyGems","fixed":["4.2.11.1"],"introduced":["4.0.0"],"last_affected":[],"package":"actionview","purl":null,"source":"GHSA-86g5-2wh3-gc9j"},{"ecosystem":"RubyGems","fixed":["4.2.11.1"],"introduced":["4.0.0"],"last_affected":[],"package":"actionview","purl":"pkg:gem/actionview","source":"GHSA-86g5-2wh3-gc9j"},{"ecosystem":"RubyGems","fixed":["5.0.7.2"],"introduced":["5.0.0"],"last_affected":[],"package":"actionview","purl":null,"source":"GHSA-86g5-2wh3-gc9j"},{"ecosystem":"RubyGems","fixed":["5.0.7.2"],"introduced":["5.0.0"],"last_affected":[],"package":"actionview","purl":"pkg:gem/actionview","source":"GHSA-86g5-2wh3-gc9j"},{"ecosystem":"RubyGems","fixed":["5.1.6.2"],"introduced":["5.1.0"],"last_affected":[],"package":"actionview","purl":null,"source":"GHSA-86g5-2wh3-gc9j"},{"ecosystem":"RubyGems","fixed":["5.1.6.2"],"introduced":["5.1.0"],"last_affected":[],"package":"actionview","purl":"pkg:gem/actionview","source":"GHSA-86g5-2wh3-gc9j"},{"ecosystem":"RubyGems","fixed":["5.2.2.1"],"introduced":["5.2.0"],"last_affected":[],"package":"actionview","purl":null,"source":"GHSA-86g5-2wh3-gc9j"},{"ecosystem":"RubyGems","fixed":["5.2.2.1"],"introduced":["5.2.0"],"last_affected":[],"package":"actionview","purl":"pkg:gem/actionview","source":"GHSA-86g5-2wh3-gc9j"}],"prev":{"headline":"Directory Traversal in serve","id":"CVE-2019-5417"},"products":["https://github.com/rails/rails"],"published":"2019-03-27","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Rails"]},"summary":"Attackers can read arbitrary files on the server by sending specially crafted Accept headers in Ruby on Rails applications.","url":"https://insights.sbomify.com/CVE-2019-5418/"}