CVE-2017-17042

NameCVE-2017-17042
Descriptionlib/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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
yard (PTS)jessie0.8.7.4-1vulnerable
stretch0.9.7-1vulnerable
buster, bullseye, sid0.9.16-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
yardsource(unstable)0.9.12-1medium

Notes

[stretch] - yard <no-dsa> (Minor issue)
[jessie] - yard <no-dsa> (Minor issue)
[wheezy] - yard <no-dsa> (Minor issue)
Fixed by: https://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4 (0.9.11)

Search for package or bug name: Reporting problems