GitHub Advisoryadvisory · RubyGems
GHSA-gj4p-3wh3-2rmf Arbitrary file read vulnerability in yard server
HIGH
Official page ↗
- Aliases
- CVE-2017-17042
- Ecosystem
- RubyGems
- Packages
- yard
- Severity
- High
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2020-06-16
Affected packages
• RubyGems yard: < 0.9.11 → fixed in 0.9.11
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.
Related
Alias · CVE (1)
- CVE-2017-17042 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… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-17042 advisory
- https://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4 web
- https://github.com/advisories/GHSA-gj4p-3wh3-2rmf advisory
- https://github.com/lsegal/yard package
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2017-17042.yml web