{"answers":{"affected":"6 open source packages ship an affected version, including sprockets. It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-3760 exists.","fix":"Upgrade sprockets to a fixed version for your release line: 2.12.5, 3.7.2 or 4.0.0.beta8.","what":"CVE-2018-3760 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 26 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-3760 and fix it if it is affected.\n\nWhat it is: CVE-2018-3760 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 26 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-3760 exists.\n\nAffected packages and fixed versions:\n- sprockets (RubyGems): affected all versions; fixed in 2.12.5\n- sprockets (RubyGems): affected all versions; fixed in 2.12.5\n- sprockets (RubyGems): affected from 3.0.0; fixed in 3.7.2\n- sprockets (RubyGems): affected from 3.0.0; fixed in 3.7.2\n- sprockets (RubyGems): affected from 4.0.0.beta1; fixed in 4.0.0.beta8\n- sprockets (RubyGems): affected from 4.0.0.beta1; fixed in 4.0.0.beta8\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-2018-3760/ (Markdown: https://insights.sbomify.com/CVE-2018-3760/index.md)","id":"CVE-2018-3760","markdown":"https://insights.sbomify.com/CVE-2018-3760/index.md","name":"CVE-2018-3760","record":{"aliases":["DEBIAN-CVE-2018-3760","DLA-1419-1","DSA-4242-1","GHSA-pr3h-jjhj-573x","RHSA-2018:2244","RHSA-2018:2245","SUSE-SU-2018:1994-1","SUSE-SU-2018:2176-1","SUSE-SU-2018:2217-1","UBUNTU-CVE-2018-3760","openSUSE-SU-2024:11354-1","openSUSE-SU-2024:11355-1","openSUSE-SU-2024:11906-1","openSUSE-SU-2024:13169-1","openSUSE-SU-2024:13170-1","openSUSE-SU-2024:14075-1","openSUSE-SU-2024:14177-1","openSUSE-SU-2025:15127-1","openSUSE-SU-2025:15128-1","openSUSE-SU-2026:10364-1","openSUSE-SU-2026:10365-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby asset pipeline library","requires_auth":"none","summary":"Attackers can read arbitrary files outside the application root via crafted requests when Sprockets is used in production mode.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"cloudforms","vendor":"redhat"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"sprockets","vendor":"sprockets_project"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"There is an information leak vulnerability in Sprockets. Versions Affected: 4.0.0.beta7 and lower, 3.7.1 and lower, 2.12.4 and lower. Specially crafted requests can be used to access files that exists on the filesystem that is outside an application's root directory, when the Sprockets server is used in production. All users running an affected release should either upgrade or use one of the work arounds immediately.","ecosystems":["Red Hat:rhel_software_collections:3::el6","Red Hat:rhel_software_collections:3::el7","RubyGems","SUSE:Linux Enterprise High Availability Extension 15","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud Crowbar 8","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2019-10-21","github_poc":4,"max_poc_stars":8,"metasploit":0,"nuclei":1,"refs":[{"date":"2019-10-21T14:15:09Z","kind":"github_poc","ref":"https://github.com/mpgn/CVE-2018-3760","stars":8,"title":"Rails Asset Pipeline Directory Traversal Vulnerability "},{"date":"2020-06-24T12:15:07Z","kind":"github_poc","ref":"https://github.com/cyberharsh/Ruby-On-Rails-Path-Traversal-Vulnerability-CVE-2018-3760-","stars":3,"title":null},{"date":"2024-11-19T11:52:53Z","kind":"github_poc","ref":"https://github.com/wudidwo/CVE-2018-3760-poc","stars":0,"title":null},{"date":"2026-10-08T22:16:22Z","kind":"github_poc","ref":"https://github.com/CyberCTF/vulhub-rails-cve-2018-3760","stars":0,"title":"Vulhub rails/CVE-2018-3760: Ruby on Rails Sprockets Path Traversal (CVE-2018-3760), run with Isoloom"},{"date":null,"kind":"nuclei","ref":"http/cves/2018/CVE-2018-3760.yaml","stars":null,"title":"Ruby On Rails - Local File Inclusion"}],"tier":"weaponised"},"has_fix":true,"headline":"Sprockets path traversal leads to information leak","id":"CVE-2018-3760","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"debian:debian_linux","products":["debian:debian_linux","redhat:enterprise_linux"],"type":"path_traversal","year":"2018"},"n_packages":26,"n_references":7,"next":{"headline":"Auth bypass in Nextcloud Server","id":"CVE-2018-3761"},"packages":[{"ecosystem":"RubyGems","fixed":["2.12.5"],"introduced":["0"],"last_affected":[],"package":"sprockets","purl":null,"source":"GHSA-pr3h-jjhj-573x"},{"ecosystem":"RubyGems","fixed":["2.12.5"],"introduced":["0"],"last_affected":[],"package":"sprockets","purl":"pkg:gem/sprockets","source":"GHSA-pr3h-jjhj-573x"},{"ecosystem":"RubyGems","fixed":["3.7.2"],"introduced":["3.0.0"],"last_affected":[],"package":"sprockets","purl":null,"source":"GHSA-pr3h-jjhj-573x"},{"ecosystem":"RubyGems","fixed":["3.7.2"],"introduced":["3.0.0"],"last_affected":[],"package":"sprockets","purl":"pkg:gem/sprockets","source":"GHSA-pr3h-jjhj-573x"},{"ecosystem":"RubyGems","fixed":["4.0.0.beta8"],"introduced":["4.0.0.beta1"],"last_affected":[],"package":"sprockets","purl":null,"source":"GHSA-pr3h-jjhj-573x"},{"ecosystem":"RubyGems","fixed":["4.0.0.beta8"],"introduced":["4.0.0.beta1"],"last_affected":[],"package":"sprockets","purl":"pkg:gem/sprockets","source":"GHSA-pr3h-jjhj-573x"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:3.2.0-5.el6"],"introduced":["0"],"last_affected":[],"package":"rh-ror42-rubygem-sprockets","purl":"pkg:rpm/redhat/rh-ror42-rubygem-sprockets","source":"RHSA-2018:2244"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:3.2.0-5.el6"],"introduced":["0"],"last_affected":[],"package":"rh-ror42-rubygem-sprockets-doc","purl":"pkg:rpm/redhat/rh-ror42-rubygem-sprockets-doc","source":"RHSA-2018:2244"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:3.7.1-2.el6"],"introduced":["0"],"last_affected":[],"package":"rh-ror50-rubygem-sprockets","purl":"pkg:rpm/redhat/rh-ror50-rubygem-sprockets","source":"RHSA-2018:2245"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:3.7.1-2.el6"],"introduced":["0"],"last_affected":[],"package":"rh-ror50-rubygem-sprockets-doc","purl":"pkg:rpm/redhat/rh-ror50-rubygem-sprockets-doc","source":"RHSA-2018:2245"},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","fixed":["0:3.2.0-5.el7"],"introduced":["0"],"last_affected":[],"package":"rh-ror42-rubygem-sprockets","purl":"pkg:rpm/redhat/rh-ror42-rubygem-sprockets","source":"RHSA-2018:2244"},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","fixed":["0:3.2.0-5.el7"],"introduced":["0"],"last_affected":[],"package":"rh-ror42-rubygem-sprockets-doc","purl":"pkg:rpm/redhat/rh-ror42-rubygem-sprockets-doc","source":"RHSA-2018:2244"},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","fixed":["0:3.7.1-2.el7"],"introduced":["0"],"last_affected":[],"package":"rh-ror50-rubygem-sprockets","purl":"pkg:rpm/redhat/rh-ror50-rubygem-sprockets","source":"RHSA-2018:2245"},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","fixed":["0:3.7.1-2.el7"],"introduced":["0"],"last_affected":[],"package":"rh-ror50-rubygem-sprockets-doc","purl":"pkg:rpm/redhat/rh-ror50-rubygem-sprockets-doc","source":"RHSA-2018:2245"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15","fixed":["3.7.2-3.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets","purl":"pkg:rpm/suse/rubygem-sprockets\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015","source":"SUSE-SU-2018:1994-1"},{"ecosystem":"SUSE:OpenStack Cloud 7","fixed":["2.12.5-1.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets-2_12","purl":"pkg:rpm/suse/rubygem-sprockets-2_12\u0026distro=SUSE%20OpenStack%20Cloud%207","source":"SUSE-SU-2018:2217-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["2.12.5-1.4.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets-2_12","purl":"pkg:rpm/suse/rubygem-sprockets-2_12\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2018:2176-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.1.1-1.6"],"introduced":["0"],"last_affected":[],"package":"ruby3.2-rubygem-sprockets","purl":"pkg:rpm/opensuse/ruby3.2-rubygem-sprockets\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13169-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.7.2-1.20"],"introduced":["0"],"last_affected":[],"package":"ruby3.2-rubygem-sprockets-3.7","purl":"pkg:rpm/opensuse/ruby3.2-rubygem-sprockets-3.7\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13170-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.0.3-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets","purl":"pkg:rpm/opensuse/rubygem-sprockets\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11906-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.2.1-1.5"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets","purl":"pkg:rpm/opensuse/rubygem-sprockets\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14177-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.2.1-1.7"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets","purl":"pkg:rpm/opensuse/rubygem-sprockets\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15127-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.2.1-1.9"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets","purl":"pkg:rpm/opensuse/rubygem-sprockets\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10364-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.7.3-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets-3.7","purl":"pkg:rpm/opensuse/rubygem-sprockets-3.7\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14075-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.7.5-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets-3.7","purl":"pkg:rpm/opensuse/rubygem-sprockets-3.7\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15128-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.7.5-1.5"],"introduced":["0"],"last_affected":[],"package":"rubygem-sprockets-3.7","purl":"pkg:rpm/opensuse/rubygem-sprockets-3.7\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10365-1"}],"prev":{"headline":"private_address_check contains race condition","id":"CVE-2018-3759"},"products":["Sprockets"],"published":"2018-06-26","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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["HackerOne"]},"summary":"Attackers can read arbitrary files outside the application root via crafted requests when Sprockets is used in production mode.","url":"https://insights.sbomify.com/CVE-2018-3760/"}