CVE-2021-3907: Arbitrary filepath traversal via URI injection
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.
Patches
For more information If you have any questions or comments about this advisory email us at security@cloudflare.com
Other sources
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 Software
Remediation
Information
Event History
Frequently Asked Questions
What is CVE-2021-3907?
CVE-2021-3907 is a vulnerability in OctoRPKI that allows a repository to create a file outside the base cache folder, potentially leading to remote code execution on the host machine.
How severe is CVE-2021-3907?
CVE-2021-3907 has a severity rating of 9.8 (Critical).
Which software is affected by CVE-2021-3907?
The affected software includes OctoRPKI versions 1.3.0 (up to exclusive), 1.4.2-1~deb11u1, 1.4.4-1, 1.5.3-1~deb11u1, and 1.5.4-1, as well as Cloudflare Octorpki and Debian Linux versions 10.0 and 11.0.
How can I fix CVE-2021-3907?
To fix CVE-2021-3907, it is recommended to update OctoRPKI and affected software versions to the appropriate patched versions provided by the software vendors.
Where can I find more information about CVE-2021-3907?
More information about CVE-2021-3907 can be found at the following references: [GitHub Advisory](https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh), [Debian Security Tracker](https://security-tracker.debian.org/tracker/CVE-2021-3907), [Cloudflare Advisory](https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959).