{ "schema_version": "1.4.0", "id": "GHSA-xfhh-rx56-rxcr", "modified": "2024-03-07T00:30:48Z", "published": "2019-07-02T15:28:38Z", "aliases": [ "CVE-2019-1020001" ], "summary": "Path Traversal vulnerability that affects yard", "details": "## Possible arbitrary path traversal and file access via `yard server`\n\n### Impact\n\nA 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.\n\nThanks to CuongMX from Viettel Cyber Security for discovering this vulnerability.\n\n### Patches\n\nPlease upgrade to YARD v0.9.20 immediately if you are relying on yard server to host documentation in any untrusted environments.\n\n### Workarounds\n\nFor 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.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N" } ], "affected": [ { "package": { "ecosystem": "RubyGems", "name": "yard" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "0.9.20" } ] } ] } ], "references": [ { "type": "WEB", "url": "https://github.com/lsegal/yard/security/advisories/GHSA-xfhh-rx56-rxcr" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-1020001" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-xfhh-rx56-rxcr" }, { "type": "WEB", "url": "https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html" } ], "database_specific": { "cwe_ids": [ "CWE-22" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2020-06-16T22:03:08Z", "nvd_published_at": "2019-07-29T13:15:00Z" } }