CVE-2017-17042Yardoc Yard
High 7.5 No auth needed
Follow: this CVE · Yardoc · Yardoc Yard We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 2.9% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Nov 28, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Yard.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | yard |
< 0.9.11 |
0.9.11 |
gem "yard", ">= 0.9.11" |
Per OSV / GitHub Advisories (GHSA-gj4p-3wh3-2rmf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yardoc | yard | < 0.9.11 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch