{"id":"CVE-2017-17042","aliases":["GHSA-gj4p-3wh3-2rmf"],"kind":"cve","tier":"cold","status":"published","title":"Arbitrary file read vulnerability in yard server","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.","ai_summary":null,"severity":"high","cvss":{"score":7.5,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"NVD"},"scores":[{"score":7.5,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"nvd"},{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"nvd"}],"cwe":["CWE-22"],"remote":true,"remote_unauth":true,"epss":{"score":0.02894,"percentile":0.8735,"date":"2026-12-03"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"RubyGems","name":"yard","affected":"< 0.9.11","fixed":["0.9.11"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade yard to 0.9.11 or later.","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-17042","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-gj4p-3wh3-2rmf","kind":"vendor"},{"url":"https://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4","kind":"patch"},{"url":"https://github.com/lsegal/yard","kind":"other"},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2017-17042.yml","kind":"other"}],"workarounds":null,"vendors":["yardoc"],"products":["yard"],"cpes":["cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:*"],"published_at":"2017-11-28T20:00:00.000Z","modified_at":"2026-06-17T01:10:15.667Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-17042"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-gj4p-3wh3-2rmf","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2017-17042","markdown":"https://flawdb.com/CVE-2017-17042.md","json":"https://flawdb.com/api/v1/entries/CVE-2017-17042"}}