lib/yard/core_ext/file.rb in the server in YARD before 0.9.11 does not block relative…
Priority LOW 38CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
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.
Why it matters now
EPSS 0.02894 87th percentileScored 2026-11-07
Fix Partial yard (RubyGems): 0.9.11Red Hat: 2 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | yard (RubyGems) | before 0.9.11 | 0.9.11 | Patch available | GHSA-gj4p-3wh3-2rmf |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- yard (RubyGems) Vendor— Affected before 0.9.11 Fixed in 0.9.11 Patch available GHSA-gj4p-3wh3-2rmf
Remediation
- Fix · GHSA-gj4p-3wh3-2rmf yard (RubyGems) Fixed in 0.9.11 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise MRG 2 | Affected | No fix planned: Will not fix |
| Red Hat Subscription Asset Manager | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2017-17042
- 2026-10-03 Alias added: GHSA-gj4p-3wh3-2rmf
References
Advisory 2
More Yardoc Yard vulnerabilities
- TI-2024-18124 YARD's default template vulnerable to Cross-site Scripting in generated frames.html CVSS 3.1MEDIUM 6.1
- TI-2026-30080 yard: Possible arbitrary path traversal and file access via yard server CVSS 4.0MEDIUM 6.9
- TI-2019-16079 yard before 0.9.20 allows path traversal. CVSS 3.0HIGH 7.5
Sources
- CVE-2017-17042 · CVE Program
- CVE-2017-17042 · NVD
- FIRST EPSS
- GHSA-gj4p-3wh3-2rmf · GitHub Advisory Database · CC BY 4.0
- CVE-2017-17042 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences