{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3907","id":"CVE-2021-3907","title":"Arbitrary filepath traversal via URI injection","description":"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.","descriptionLong":"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.","published":"2021-11-11T21:45:16.585Z","updated":"2026-10-20T10:54:52.649200877Z","reserved":"2021-10-26T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"cloudflare","metric":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"cloudflare"},"metrics":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"cloudflare"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"cloudflare.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":["Cloudflare octorpki"],"affectedProducts":[{"vendor":"Cloudflare","product":"octorpki","defaultStatus":null,"versions":[{"lessThan":"1.4.3","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","ranges":["<1.4.3","<1.4.4"],"fixed":["1.4.3","1.4.4"],"advisory":"GHSA-8459-6rc9-8vf8"}],"cwes":["CWE-20","CWE-22"],"aliases":["GHSA-8459-6rc9-8vf8","GHSA-cqh2-vc2f-q4fh","GO-2022-0248"],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.debian.org/security/2021/dsa-5033","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.debian.org/security/2022/dsa-5041","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-8459-6rc9-8vf8","tags":["web"]},{"url":"https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd","tags":["web","fix"]},{"url":"https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284","tags":["web","fix"]},{"url":"https://github.com/cloudflare/cfrpki","tags":["package"]},{"url":"https://github.com/cloudflare/cfrpki/releases/tag/v1.4.3","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3907","tags":["advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0248","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.04199,"epssPercentile":0.91159,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3907","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3907","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3907","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8459-6rc9-8vf8","ok":true,"note":"GHSA-8459-6rc9-8vf8"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cqh2-vc2f-q4fh","ok":true,"note":"GHSA-cqh2-vc2f-q4fh"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3907","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}