{"id":"CVE-2021-3907","aliases":["CVE-2021-3907","GHSA-8459-6rc9-8vf8","GHSA-cqh2-vc2f-q4fh","GO-2022-0248"],"related":["GHSA-3jhm-87m6-x959"],"kind":"vulnerability","state":"published","title":"Arbitrary filepath traversal via URI injection","summary":"OctoRPKI does not escape a URI with a filename containing \"..\", this allows a repository to create a file, (ex. rsync://example.org/repo/../../etc/cron.daily/evil.roa), which would then be written to disk outside the base cache folder. This could allow for remote code execution on the host machine OctoRPKI is running on.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OctoRPKI does not escape a URI with a filename containing \"..\", this allows a repository to create a file, (ex. rsync://example.org/repo/../../etc/cron.daily/evil.roa), which would then be written to disk outside the base cache folder. This could allow for remote code execution on the host machine OctoRPKI is running on.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn the case that a malicious TAL file is parsed pointing to a repository that provides a malicious ROA file which octorpki downloads, it is possible to bypass the current directory traversal mitigation to allow writing outside of the current directory. \n\n### Patches\n\nNo patch release has been made","format":"markdown","source":"ghsa"},{"lang":"en","text":"OctoRPKI does not escape a URI with a filename containing \"..\", this allows a repository to create a file, (ex.  `rsync://example.org/repo/../../etc/cron.daily/evil.roa`), which would then be written to disk outside the base cache folder. This could allow for remote code execution on the host machine OctoRPKI is running on. \n\n## Patches\n\n## For more information\nIf you have any questions or comments about this advisory email us at security@cloudflare.com","format":"markdown","source":"ghsa"},{"lang":"en","text":"Manifest path extraction is vulnerable to directory traversal attacks.\n\nThe ExtractPathManifest function permits file paths containing relative directory components (\"..\"), permitting files to reference arbitrary locations on the filesystem.","format":"markdown","source":"go"},{"lang":"es","text":"OctoRPKI no escapa a un URI con un nombre de archivo que contenga \"..\", esto permite que un repositorio cree un archivo, (ej. rsync://ejemplo.org/repo/../../etc/cron.daily/evil.roa), que luego sería escrito en el disco fuera de la carpeta de caché base. Esto podría permitir una ejecución de código remota en la máquina anfitriona en la que se ejecuta OctoRPKI","source":"nvd"}],"published":"2021-11-10T20:08:29.000Z","modified":"2026-06-17T04:05:58.127Z","severity":{"scorer":"cloudflare","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"cloudflare","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20","CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.4.3","status":"affected"}],"vendor":"Cloudflare","product":"octorpki","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.3"}],"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.4"}],"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.4"}],"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","source":"go"},{"ranges":[{"status":"affected","fixed":"1.3.0"}],"vendor":"cloudflare","product":"octorpki","cpe":"cpe:2.3:a:cloudflare:octorpki:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.debian.org/security/2021/dsa-5033","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.debian.org/security/2022/dsa-5041","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-8459-6rc9-8vf8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/cloudflare/cfrpki","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/cloudflare/cfrpki/releases/tag/v1.4.3","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3907","tags":["advisory"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0248","tags":["web"],"sources":["ghsa"]}],"credits":["Koen van Hove"],"assigner":"cloudflare","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3907","url":"https://www.cve.org/CVERecord?id=CVE-2021-3907","licence":"CVE Terms of Use","modified":"2024-09-17T03:18:30.852Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8459-6rc9-8vf8","url":"https://github.com/advisories/GHSA-8459-6rc9-8vf8","licence":"CC-BY-4.0","modified":"2025-01-14T09:41:54.827Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cqh2-vc2f-q4fh","url":"https://github.com/advisories/GHSA-cqh2-vc2f-q4fh","licence":"CC-BY-4.0","modified":"2026-02-04T02:22:56.432Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0248","url":"https://pkg.go.dev/vuln/GO-2022-0248","licence":"CC-BY-4.0","modified":"2026-02-04T03:00:30.292Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3907","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3907","licence":"Public domain","modified":"2026-06-17T04:05:58.127Z"}],"updatedAt":"2026-11-25T22:58:05.487Z","epss":{"score":0.04117,"percentile":0.91023,"date":"2026-12-01T12:00:22.000Z"}}