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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 4.12% (percentile 92, 2026-11-26)
- **CWE:** CWE-20, CWE-22
- **Aliases:** GHSA-8459-6rc9-8vf8, GHSA-cqh2-vc2f-q4fh, GO-2022-0248
- **Published:** 2021-11-10T20:08:29.000Z
- **Modified:** 2026-06-17T04:05:58.127Z

## Who should check

- Projects that depend on Go package github.com/cloudflare/cfrpki (\< 1.4.3)
- Anyone running Cloudflare octorpki \>= unspecified, \< 1.4.3

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

## Affected and fixed versions

- Go `github.com/cloudflare/cfrpki`: affected \< 1.4.3; fixed 1.4.3, 1.4.4 (osv)
- Cloudflare octorpki: \>= unspecified, \< 1.4.3 (cvelist)

## Mitigation

- Upgrade github.com/cloudflare/cfrpki to one of 1.4.3, 1.4.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-3907. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-3907.md
Affected: github.com/cloudflare/cfrpki < 1.4.3
Fixed in: 1.4.3, 1.4.4

Steps:
1. Search this machine and project for github.com/cloudflare/cfrpki (Go), Cloudflare octorpki: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-3907 being exploited?

There is no confirmed exploitation: CVE-2021-3907 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.12% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-3907?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2021-3907?

github.com/cloudflare/cfrpki \< 1.4.3.

### Is there a fix for CVE-2021-3907?

Yes. Fixed in 1.4.3, 1.4.4. Upgrade github.com/cloudflare/cfrpki to one of 1.4.3, 1.4.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2021-3907?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh>
- vendor: <https://www.debian.org/security/2021/dsa-5033>
- vendor: <https://www.debian.org/security/2022/dsa-5041>
- vendor: <https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959>
- vendor: <https://github.com/cloudflare/cfrpki/security/advisories/GHSA-8459-6rc9-8vf8>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-3907>
- patch: <https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd>
- patch: <https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284>
- other: <https://github.com/cloudflare/cfrpki>
- other: <https://github.com/cloudflare/cfrpki/releases/tag/v1.4.3>
- other: <https://pkg.go.dev/vuln/GO-2022-0248>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-3907>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8459-6rc9-8vf8> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-cqh2-vc2f-q4fh> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-0248> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-3907> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-3907>
