CVE-2017-17042 json
Arbitrary file read vulnerability in yard server
published 2017-11-28 8 y ago modified 2026-06-17 4 mo ago also GHSA-gj4p-3wh3-2rmf , EUVD-2017-0362
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.9%
- EPSS 2.9% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems yard 0.9.11
- yardoc yard 0.9.11
- yard Debian 14, Debian 13, Debian 12 0.9.12-1
debian advisories DEBIAN-CVE-2017-17042
- yard Ubuntu Pro 16.04 LTS 0.8.7.6+git20160220-3ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2017-17042
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rubygem-yard SLE Software Development Kit 12 SP3 0.8.7.3-7.3.1
suse advisories SUSE-SU-2018:1890-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-17042 updated cvss 7.5
rubygem-yard: (lib/yard/core_ext/file.rb) is vulnerable to directory traversal attacks
-
Red Hat Enterprise MRG 2 rubygem-yard Red Hat Subscription Asset Manager rubygem-yardaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.89% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | yard | <0.9.11 |
0.9.11 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
Sources
- CVE List CVE-2017-17042
- GitHub Advisory GHSA-gj4p-3wh3-2rmf
- NVD CVE-2017-17042
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.