LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 7.4Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-3907 is a high-severity path traversal flaw in Cloudflare OctoRPKI. A malicious RPKI repository could cause OctoRPKI to write files outside its intended cache directory. On affected hosts, that may allow damaging file writes and possible remote code execution, depending on permissions and deployment context.

Executive priority

Treat this as a priority fix for any environment running OctoRPKI, especially internet-facing RPKI validation infrastructure. Business urgency is high because a trust-infrastructure component may be coerced into unsafe file writes, but exposure depends on whether the product is deployed.

Technical view

OctoRPKI did not properly escape repository URI filenames containing '..'. The CVE describes rsync URI injection that lets a repository-controlled filename escape the base cache folder and write to arbitrary filesystem paths. CVSS 3.1 is 7.4, with network attack vector, high attack complexity, no privileges, and high integrity and availability impact.

Likely exposure

Exposure is likely limited to organizations running Cloudflare OctoRPKI or related cfrpki packages that process repository data. The supplied data lists affected versions as unspecified, so teams must validate package source, version, and deployment role rather than relying on a fixed version range.

Exploitation context

The source bundle does not show CISA KEV listing or cited evidence of active exploitation. Exploitation depends on a repository being able to supply a crafted URI filename and on local filesystem permissions. The stated impact includes possible remote code execution, but no exploit steps are provided here.

Researcher notes

Key gaps are the unspecified affected version range and absence of sourced active exploitation evidence. The vulnerability maps to CWE-20 and CWE-22. Researchers should focus validation on URI path normalization, cache write boundaries, package provenance, and whether downstream distributions shipped patched cfrpki builds.

Mitigation direction

  • Identify all OctoRPKI or cfrpki deployments and package sources.
  • Review Cloudflare GHSA guidance and Debian DSA-5033/DSA-5041 for fixed packages.
  • Upgrade affected packages through trusted vendor repositories where updates are available.
  • Run OctoRPKI with least-privilege filesystem permissions and isolated cache paths.
  • Monitor vendor advisories if exact affected versions remain unclear.

Validation and detection

  • Confirm whether OctoRPKI or cfrpki is installed on RPKI validator hosts.
  • Record installed version, package origin, and operating system package advisory status.
  • Review cache directory permissions and service account write scope.
  • Check logs for unexpected write errors or paths outside the configured cache.
  • Verify vendor advisory remediation status after updates.
Prepared
Confidence
medium
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-20: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-3907 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.4CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H2.25.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.4High
CVSS 3.1 vector shape for CVE-2021-3907Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
CloudflareoctorpkiunspecifiedListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.