{"answers":{"affected":"2 open source packages ship an affected version, including yard. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-17042 in the wild and no public exploit code.","fix":"Upgrade yard to 0.9.11 or later.","what":"CVE-2017-17042 is a high-severity path traversal vulnerability in n/a, published on 28 Nov 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-17042 and fix it if it is affected.\n\nWhat it is: CVE-2017-17042 is a high-severity path traversal vulnerability in n/a, published on 28 Nov 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-17042 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- yard (RubyGems): affected all versions; fixed in 0.9.11\n- yard (RubyGems): affected all versions; fixed in 0.9.11\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-2017-17042/ (Markdown: https://insights.sbomify.com/CVE-2017-17042/index.md)","id":"CVE-2017-17042","markdown":"https://insights.sbomify.com/CVE-2017-17042/index.md","name":"CVE-2017-17042","record":{"aliases":["DEBIAN-CVE-2017-17042","GHSA-gj4p-3wh3-2rmf","SUSE-SU-2018:1890-1","UBUNTU-CVE-2017-17042","openSUSE-SU-2024:11532-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"YARD documentation tool","requires_auth":"none","summary":"Attackers can read arbitrary files via directory traversal in the YARD server component, affecting users of the Ruby documentation tool.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"yard","vendor":"yardoc"}],"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-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"lib/yard/core_ext/file.rb in the server in YARD before 0.9.11 does not block relative paths with an initial ../ sequence, which allows attackers to conduct directory traversal attacks and read arbitrary files.","ecosystems":["RubyGems","SUSE:Linux Enterprise Software Development Kit 12 SP3"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Arbitrary file read vulnerability in yard server","id":"CVE-2017-17042","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"path_traversal","year":"2017"},"n_packages":3,"n_references":1,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2017-17043"},"packages":[{"ecosystem":"RubyGems","fixed":["0.9.11"],"introduced":["0"],"last_affected":[],"package":"yard","purl":null,"source":"GHSA-gj4p-3wh3-2rmf"},{"ecosystem":"RubyGems","fixed":["0.9.11"],"introduced":["0"],"last_affected":[],"package":"yard","purl":"pkg:gem/yard","source":"GHSA-gj4p-3wh3-2rmf"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP3","fixed":["0.8.7.3-7.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-yard","purl":"pkg:rpm/suse/rubygem-yard\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3","source":"SUSE-SU-2018:1890-1"}],"prev":{"headline":"Memory corruption in QTS Notification function","id":"CVE-2017-17033"},"products":["n/a"],"published":"2017-11-28","related":[{"cvss_score":7.5,"headline":"Path Traversal vulnerability that affects yard","id":"CVE-2019-1020001","kev_date_added":null,"published":"2019-07-29"},{"cvss_score":6.9,"headline":"yard: Possible arbitrary path traversal and file access via yard server","id":"CVE-2026-41493","kev_date_added":null,"published":"2026-05-08"}],"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":"SUSE","prefix":"SUSE"},{"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"Attackers can read arbitrary files via directory traversal in the YARD server component, affecting users of the Ruby documentation tool.","url":"https://insights.sbomify.com/CVE-2017-17042/"}