{"id":"CVE-2021-3907","state":"PUBLISHED","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.","publishedAt":"2021-11-11T21:45:16.585Z","updatedAt":"2024-09-17T03:18:30.852Z","severity":{"score":7.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","source":"cloudflare"},"assigner":"cloudflare","products":["Cloudflare octorpki"],"affected":[{"vendor":"Cloudflare","product":"octorpki","versions":[{"version":"unspecified","status":"affected","lessThan":"1.4.3","versionType":"custom"}]}],"references":["https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh","https://www.debian.org/security/2021/dsa-5033","https://www.debian.org/security/2022/dsa-5041","https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959"],"weaknesses":["CWE-20","CWE-22"],"ingestedAt":"2026-10-29T19:48:55.807Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/3xxx/CVE-2021-3907.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-3907","state":"PUBLISHED","datePublished":"2021-11-11T21:45:16.585Z","dateUpdated":"2024-09-17T03:18:30.852Z","assignerShortName":"cloudflare","assignerOrgId":"a22f1246-ba21-4bb4-a601-ad51614c1513","dateReserved":"2021-10-26T00:00:00.000Z"},"containers":{"cna":{"title":"Arbitrary filepath traversal via URI injection","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Cloudflare","product":"octorpki","versions":[{"version":"unspecified","status":"affected","lessThan":"1.4.3","versionType":"custom"}]}],"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","name":"DSA-5033","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.debian.org/security/2022/dsa-5041","name":"DSA-5041","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20 Improper Input Validation","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"cloudflare","dateUpdated":"2022-06-23T12:10:10.000Z","orgId":"a22f1246-ba21-4bb4-a601-ad51614c1513"},"credits":[{"lang":"en","value":"Koen van Hove"}],"datePublic":"2021-11-01T00:00:00.000Z","solutions":[{"lang":"en","value":"Upgrade to 1.4.3"}],"source":{"advisory":"GHSA-3jhm-87m6-x959","discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cna@cloudflare.com","DATE_PUBLIC":"2021-11-01T22:16:00.000Z","ID":"CVE-2021-3907","STATE":"PUBLIC","TITLE":"Arbitrary filepath traversal via URI injection"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"octorpki","version":{"version_data":[{"version_affected":"<","version_value":"1.4.3"}]}}]},"vendor_name":"Cloudflare"}]}},"credit":[{"lang":"eng","value":"Koen van Hove"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20 Improper Input Validation"}]},{"description":[{"lang":"eng","value":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh","refsource":"MISC","url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh"},{"name":"DSA-5033","refsource":"DEBIAN","url":"https://www.debian.org/security/2021/dsa-5033"},{"name":"DSA-5041","refsource":"DEBIAN","url":"https://www.debian.org/security/2022/dsa-5041"},{"name":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959","refsource":"MISC","url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959"}]},"solution":[{"lang":"en","value":"Upgrade to 1.4.3"}],"source":{"advisory":"GHSA-3jhm-87m6-x959","discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.debian.org/security/2021/dsa-5033","name":"DSA-5033","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5041","name":"DSA-5041","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:09:09.668Z"}}]}}}