First published: Tue Nov 28 2017(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Yardoc Yard | <0.9.11 | |
debian/yard | 0.9.16-1 0.9.16-1+deb10u1 0.9.24-1 0.9.24-1+deb11u1 0.9.28-2 0.9.28-2+deb12u2 0.9.36-1 | |
ubuntu/yard | <0.9.12-1 | 0.9.12-1 |
ubuntu/yard | <0.8.7.6+ | 0.8.7.6+ |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2017-17042 has been classified with a moderate severity due to its ability to allow directory traversal attacks.
To fix CVE-2017-17042, upgrade YARD to version 0.9.11 or later.
CVE-2017-17042 affects YARD versions prior to 0.9.11.
CVE-2017-17042 enables directory traversal attacks that can allow unauthorized file access.
Yes, CVE-2017-17042 is resolved in YARD versions 0.9.11 and later.