7.5high
Path Traversal vulnerability that affects yard
- Severity
- 7.5high CVSS:3.0 by NVD
- Exploit likelihood
- 2.33% (higher than 84% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- dwf
- Also known as
- GHSA-xfhh-rx56-rxcr
Description
yard before 0.9.20 allows path traversal.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| yard yard | < 0.9.20 | CVE List |
| yard (RubyGems) | before 0.9.20 | GitHub Advisory Database |
| yardoc yard | before 0.9.20 | NVD |
All scores
| GitHub | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
yard before 0.9.20 allows path traversal.
GitHub Advisory Database
Possible arbitrary path traversal and file access via yard server
Impact
A path traversal vulnerability was discovered in YARD <= 0.9.19 when using yard server to serve documentation. This bug would allow unsanitized HTTP requests to access arbitrary files on the machine of a yard server host under certain conditions.
Thanks to CuongMX from Viettel Cyber Security for discovering this vulnerability.
Patches
Please upgrade to YARD v0.9.20 immediately if you are relying on yard server to host documentation in any untrusted environments.
Workarounds
For users who cannot upgrade, it is possible to perform path sanitization of HTTP requests at your webserver level. WEBrick, for example, can perform such sanitization by default (which you can use via yard server -s webrick), as can certain rules in your webserver configuration.
NVD (es)
yard anterior a versión 0.9.20, permite un Salto de Ruta (path).
References
| https://github.com/lsegal/yard/security/advisories/GHSA-xfhh-rx56-rxcr | mitigation, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html | mailing-list, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-1020001 | advisory | |
| https://github.com/advisories/GHSA-xfhh-rx56-rxcr | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2019-1020001 changed 2024-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xfhh-rx56-rxcr changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2019-1020001 changed 2026-06-17 | Public domain |