{"schemaVersion":3,"id":"CVE-2021-3907","aliases":["UBUNTU-CVE-2021-3907","DEBIAN-CVE-2021-3907","GHSA-8459-6rc9-8vf8","GHSA-cqh2-vc2f-q4fh","GO-2022-0248"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-11-11T21:45:16.585Z","modified":"2024-09-17T03:18:30.852Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":5.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":5.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04199,"percentile":0.90851,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.04199},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04199,"percentile":0.90851}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04199,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04199,"percentile":0.90851}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"cloudflare","product":"octorpki","name":"octorpki","label":"octorpki","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 1.4.3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 1.4.3 | < 1.3.0","eol":null,"hubHref":"/vendor/cloudflare/octorpki"},{"vendor":"debian","product":"cfrpki","name":"cfrpki","label":"cfrpki","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cfrpki","purlType":"deb","versions":[{"text":"< 1.4.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-1","eol":null,"hubHref":null},{"vendor":"debian","product":"fort-validator","name":"fort-validator","label":"fort-validator","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/fort-validator","purlType":"deb","versions":[{"text":"< 1.5.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"fort-validator","name":"fort-validator","label":"fort-validator","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/fort-validator","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null},{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0 | 11.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"github.com/cloudflare","product":"cfrpki","name":"github.com/cloudflare/cfrpki","label":"cfrpki","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/cloudflare/cfrpki","purlType":"golang","versions":[{"text":"< 1.4.3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.4.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.3 | < 1.4.4","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh","label":"github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Third Party Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-5033","label":"www.debian.org/security/2021/dsa-5033","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","WEB","Third Party Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5041","label":"www.debian.org/security/2022/dsa-5041","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","WEB","Third Party Advisory"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959","label":"github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959","hostname":"github.com","tags":["X Refsource MISC","WEB","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3907","label":"ubuntu.com/security/CVE-2021-3907","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd","label":"github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd","hostname":"github.com","tags":["REPORT","WEB","FIX"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3907","label":"www.cve.org/CVERecord?id=CVE-2021-3907","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3907","label":"security-tracker.debian.org/tracker/CVE-2021-3907","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-8459-6rc9-8vf8","label":"github.com/cloudflare/cfrpki/security/advisories/GHSA-8459-6rc9-8vf8","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284","label":"github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/cloudflare/cfrpki","label":"github.com/cloudflare/cfrpki","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/cloudflare/cfrpki/releases/tag/v1.4.3","label":"github.com/cloudflare/cfrpki/releases/tag/v1.4.3","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3907","label":"nvd.nist.gov/vuln/detail/CVE-2021-3907","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0248","label":"pkg.go.dev/vuln/GO-2022-0248","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DSA-5033-1","DSA-5041-1"],"duplicates":[],"related":["GHSA-3JHM-87M6-X959"]},"timeline":[{"kind":"published","date":"2021-11-11T21:45:16.585Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T03:18:30.852Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:44:01.342Z","stale":false,"partial":false}}