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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.4
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.
- Record
CVE-2021-3907- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-20, CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2021-2338
7.4
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.
- Record
EUVD-2021-2338- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-cqh2-vc2f-q4fh
7.4
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 [email protected]
- Record
GHSA-cqh2-vc2f-q4fh- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-20, CWE-22
- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8459-6rc9-8vf8 No score
Path traversal in github.com/cloudflare/cfrpki/cmd/octorpki
Impact
In the case that a malicious TAL file is parsed pointing to a repository that provides a malicious ROA file which octorpki downloads, it is possible to bypass the current directory traversal mitigation to allow writing outside of the current directory.
Patches
No patch release has been made
- Record
GHSA-8459-6rc9-8vf8- Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
7.4
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.
- Record
CVE-2021-3907- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-20, CWE-22
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2021-3907- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2021-3907
9.8
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.
- Record
DEBIAN-CVE-2021-3907- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-cqh2-vc2f-q4fh
7.4
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 [email protected]
- Record
GHSA-cqh2-vc2f-q4fh- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-20, CWE-22
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-3907
9.8
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.
- Record
UBUNTU-CVE-2021-3907- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-8459-6rc9-8vf8 No score
Path traversal in github.com/cloudflare/cfrpki/cmd/octorpki
Impact
In the case that a malicious TAL file is parsed pointing to a repository that provides a malicious ROA file which octorpki downloads, it is possible to bypass the current directory traversal mitigation to allow writing outside of the current directory.
Patches
No patch release has been made
- Record
GHSA-8459-6rc9-8vf8- Weakness
- CWE-22
- Updated
- 2026-11-02
OSVGO-2022-0248 No score
Directory traversal in manifest path extraction in github.com/cloudflare/cfrpki
Manifest path extraction is vulnerable to directory traversal attacks.
The ExtractPathManifest function permits file paths containing relative directory components (".."), permitting files to reference arbitrary locations on the filesystem.
- Record
GO-2022-0248- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/cloudflare/cfrpkiGo |
through 1.4.2 | 1.4.3 |
github.com/cloudflare/cfrpkiGo |
before 1.4.4 | 1.4.4 |
cfrpkiDebian:12 |
before 1.4.0-1 | 1.4.0-1 |
fort-validatorDebian:12 |
before 1.5.3-1 | 1.5.3-1 |
fort-validatorDebian:13 |
before 1.5.3-1 | 1.5.3-1 |
fort-validatorDebian:14 |
before 1.5.3-1 | 1.5.3-1 |
fort-validatorDebian:11 From an advisory covering 4 CVEs |
before 1.5.3-1~deb11u1, plus listed versions 1.5.0-11.5.1-11.5.2-1 |
1.5.3-1~deb11u1 |
cfrpkiDebian:11 From an advisory covering 10 CVEs |
before 1.4.2-1~deb11u1, plus listed versions 1.2.2-11.3.0-11.4.0-1 |
1.4.2-1~deb11u1 |
github.com/cloudflare/cfrpkiGo |
before 1.4.3 | 1.4.3 |
fort-validatorUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 1.1.1-21.1.2-11.1.3-11.2.0-11.2.0-1ubuntu0.1~esm1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-3907 is a high vulnerability (CVSS 7.4) in Cloudflare Octorpki, published November 10, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.20%, the 90th percentile. Fixed in github.com/cloudflare/cfrpki 1.4.3.
References
github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh
debian.org/security/2021/dsa-5033
debian.org/security/2022/dsa-5041
github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959
github.com/cloudflare/cfrpki/security/advisories/GHSA-8459-6rc9-8vf8
github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd
Show 10 moreShow less
github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284
github.com/cloudflare/cfrpki/releases/tag/v1.4.3
github.com/advisories/GHSA-8459-6rc9-8vf8
nvd.nist.gov/vuln/detail/CVE-2021-3907
pkg.go.dev/vuln/GO-2022-0248
github.com/advisories/GHSA-cqh2-vc2f-q4fh
security-tracker.debian.org/tracker/CVE-2021-3907
github.com/cloudflare/cfrpki
ubuntu.com/security/CVE-2021-3907
cve.org/CVERecord?id=CVE-2021-3907