CVE-2019-1020001
JSON

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 packageVersionsReported by
yard yard< 0.9.20CVE List
yard (RubyGems)before 0.9.20GitHub Advisory Database
yardoc yardbefore 0.9.20NVD

All scores

GitHub7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2019-1020001 changed 2024-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-xfhh-rx56-rxcr changed 2026-09-10CC-BY-4.0
NVDCVE-2019-1020001 changed 2026-06-17Public domain