{"id":"CVE-2021-3907","published":"2021-11-11T21:45:16Z","modified":"2024-09-17T03:18:30Z","title":"Arbitrary filepath traversal via URI injection","vendor":"Cloudflare","product":"octorpki","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04117,"percentile":0.91035,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2021/dsa-5033","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.debian.org/security/2022/dsa-5041","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959","tags":["x_refsource_MISC"]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":18.21},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"cloudflare","affectedVersions":[{"vendor":"Cloudflare","product":"octorpki","versions":[">= unspecified, < 1.4.3"]}],"solutions":{"items":["Upgrade to 1.4.3"],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","vulnerableRanges":["<1.4.4"],"patched":["1.4.4"],"from":["GHSA-cqh2-vc2f-q4fh","GO-2022-0248"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-2338","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cloudflare-octorpki-cve-2021-3907","children":[{"from":"CVE-2021-3907","to":"CVE-2021-3912","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cmd/octorpki/octorpki.go"],"commits":["https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd","https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284","https://github.com/cloudflare/cfrpki/commit/648658b1b176a747b52645989cfddc73a81eacad"],"basis":"rarely changed file"}]},{"from":"CVE-2021-3907","to":"CVE-2022-3616","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cmd/octorpki/octorpki.go"],"commits":["https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd","https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284","https://github.com/cloudflare/cfrpki/commit/5f64bcd13477b29cd7ddff6fff3c65dfac3423ca"],"basis":"rarely changed file"}]}]}}