LiveActive security incident?Get immediate response
CVE Record

CVE-2021-3978: Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki

When copying files with rsync, octorpki uses the "-a" flag 0, which forces rsync to copy binaries with the suid bit set as root. Since the provided service definition defaults to root ( https://github.com/cloudflare/cfrpki/blob/master/package/octorpki.service ) this could allow for a vector, when combined with another vulnerability that causes octorpki to process a malicious TAL file, for a local privilege escalation.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-3978 is a local privilege escalation risk in Cloudflare octorpki. The issue comes from copying files with rsync in archive mode, which can preserve SUID permissions while the service runs as root. Exploitation also requires another flaw that causes malicious TAL file processing, so urgency depends on actual octorpki deployment and local access.

Executive priority

Treat this as a targeted infrastructure hardening priority, not a mass internet emergency. It matters most where octorpki runs on shared or sensitive systems. Prioritize inventory, vendor guidance review, and local-access reduction before deployment or RPKI operations changes.

Technical view

octorpki uses rsync with the -a flag, preserving permission bits including SUID. Because the referenced service definition defaults to root, a malicious file path combined with separate TAL-processing compromise could create local privilege escalation. CVSS is 7.5 with local attack vector, high complexity, low privileges, required user interaction, and changed scope.

Likely exposure

Exposure is likely limited to environments running Cloudflare octorpki with the vulnerable rsync behavior and root service configuration. The source bundle lists Cloudflare octorpki and package name octorpki, but does not provide a clear fixed version or broad product matrix.

Exploitation context

The provided sources do not report active exploitation, and the CVE is not listed as KEV. The described attack is conditional: an attacker needs local privileges, user interaction, and another vulnerability or path that makes octorpki process a malicious TAL file.

Researcher notes

Evidence supports a high-severity local privilege escalation chain, but not standalone remote compromise. The advisory details in the source bundle are sparse on affected versions and fixes. Validate assumptions against the Cloudflare advisory before asserting exposure or remediation completeness.

Mitigation direction

  • Check Cloudflare's advisory for fixed versions or supported configuration guidance.
  • Inventory systems running octorpki and prioritize those running the service as root.
  • Avoid processing untrusted TAL files until vendor guidance is applied.
  • Restrict local user access on hosts running octorpki.
  • Monitor Cloudflare cfrpki releases and advisories for remediation details.

Validation and detection

  • Confirm whether octorpki is installed on relevant RPKI infrastructure hosts.
  • Check the service definition and runtime user for octorpki.
  • Review deployment records for versions tied to Cloudflare cfrpki/octorpki.
  • Look for operational handling of TAL files from untrusted sources.
  • Confirm whether vendor guidance has been applied to each deployment.
Prepared
Confidence
medium
Sources
3

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 · medium confidence lookup

CWE-269: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. 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

Privilege behavior lookup

The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. 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-3978 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.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/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
2Source 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.5CVSS 3.1HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H0.86Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

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

Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/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
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Cloudflareoctorpkioctorpki, 0unaffected
Weakness

CWE details

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

CWE-269 · source CWE mapping

Improper Privilege Management

Improper Privilege Management represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.