CVE-2017-17042
high
CVSS v3
7.5
CVSS v4 NEW
โ
VIR risk
7.5
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.
Predictions
Exploit likelihood
83%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | bookworm | fixed | 0.9.12-1 |
| debian | bullseye | fixed | 0.9.12-1 |
| debian | forky | fixed | 0.9.12-1 |
| debian | sid | fixed | 0.9.12-1 |
| debian | trixie | fixed | 0.9.12-1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| yardoc | yard | {"endExcluding":"0.9.11"} | 0.9.11 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-17042
- https://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4
- https://www.suse.com/security/cve/CVE-2017-17042.html
- https://github.com/advisories/GHSA-gj4p-3wh3-2rmf
- https://github.com/lsegal/yard
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2017-17042.yml
- https://security-tracker.debian.org/tracker/CVE-2017-17042
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.