SecurityContext

CVE-2021-3978: octorpki - Privilege Escalation

  • Cve: CVE-2021-3978
  • Name: octorpki - Privilege Escalation
  • Description: 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.
  • Impact: Local attackers could escalate privileges to root by exploiting this file copying behavior when processing malicious TAL files.
  • Remediation: Review and modify the rsync usage to avoid copying suid binaries as root, and apply relevant security patches.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00144
  • Epss percentile: 0.03648
  • Assignee: [email protected]
  • Published at: 2025-01-29T10:15:07Z
  • Age in days: 664
  • Modified at: 2026-06-17T04:06:19Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-3978
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-269Improper Privilege Management
NVD-CWE-noinfo—

References

UrlSourceTags
https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
cloudflare:octorpki< 1.4.2nonvd/v1/products/cloudflare/octorpki

Projects

RepositoryLink kindsIndexedUrl
cloudflare/cfrpkipackage, security_advisoryyes/v1/repositories/cloudflare/cfrpki

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts