CVE-2017-17042
HIGH7.5EPSS 0.41%Arbitrary file read vulnerability in yard server
Published: 12/21/2017Modified: 4/28/2026
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 packages (2)
- Debian/yardfrom 0, < 0.9.12-1
- RubyGems/yardfrom 0, < 0.9.11
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (6)
- ADVISORYhttps://github.com/advisories/GHSA-gj4p-3wh3-2rmf
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2017-17042
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2017-17042
- PATCHhttps://github.com/lsegal/yard
- WEBhttps://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2017-17042.yml