CVE-2017-17042
rubygem-yard: (lib/yard/core_ext/file.rb) is vulnerable to directory traversal attacks
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-22
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | yard | <0.9.11 | 0.9.11 |
Open a package to see all its vulnerabilities.
Operating systems · 7 fixes
debian 5 releases · 1 package
fixed 4
affected 1
yard
| Release | Package | Fixed in |
|---|---|---|
| 11 | yard | 0.9.12-1 |
| 12 | yard | 0.9.12-1 |
| 13 | yard | 0.9.12-1 |
| 14 | yard | 0.9.12-1 |
| 9 | yard | affected |
echo 1 release · 1 package
fixed 1
yard
| Release | Package | Fixed in |
|---|---|---|
| yard | 0.9.12-1 |
openSUSE 1 release · 1 package
fixed 1
yast2-buildtools
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | yast2-buildtools +1 | 4.4.1-1.2 | openSUSE-SU-2024:11532-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2017-17042
- github.com https://github.com/advisories/GHSA-gj4p-3wh3-2rmf
- github.com https://github.com/lsegal/yard
- github.com https://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2017-17042.yml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-17042
- ubuntu.com https://ubuntu.com/security/notices/USN-6731-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2017-17042
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.