What’s Vulnerable › Vulnerabilities
CVE-2017-17042
- Severity: high (CVSS 7.5 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2017-11-28 · updated 2026-06-17
- Weakness: CWE-22
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.
Affected products
- lsegal yard: before 0.9.11 — fixed in 0.9.11
How to fix
Upgrade to a fixed version: lsegal yard 0.9.11. Check the vendor advisory for mitigations.
References
- https://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4
- https://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4
Get alerted when CVE-2017-17042 or the next vulnerability affects your stack