CVE-2021-3907: Arbitrary filepath traversal via URI injection

Published Nov 1, 2021
·
Updated

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

6 affected componentsFixes available
debian/cfrpki
1.4.2-1~deb11u11.4.4-11.5.10-2
debian/fort-validator
1.5.3-1~deb11u11.5.4-11.6.1-1
go/github.com/cloudflare/cfrpki<1.4.4
1.4.4
Cloudflare OctoRPKI<1.3.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0

Remediation

Information

Upgrade to 1.4.3

Event History

Nov 10, 2021
Advisory Published
via GitHub·08:08 PM
Nov 11, 2021
CVE Published
via MITRE·09:45 PM
Data Sourced
via MITRE·09:45 PM
RemedyDescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

How severe is CVE-2021-3907?

CVE-2021-3907 has a severity rating of 9.8 (Critical).

3

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.

4

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.

5

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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203