github.com
https://github.com/cloudflare/cfrpki CVE-2021-3978
HIGH
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
Record summary
CVE-2021-3978 has a selected CVSS score of 7.5 (high).
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.
Description source: CVE List
Exploitation context
CISA SSVC decision
ExploitationNone
AutomatableNo
Technical impactTotal
CISA Coordinator · SSVC 2.0.3 · Evaluated Jan 29, 2025 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
octorpkiBrowse Cloudflare / octorpkiDefault status: unaffected | CVE List | Before v1.4.2 | affected |
github.com/cloudflare/cfrpkiBrowse Go / github.com/cloudflare/cfrpki | GitHub Advisory | Before 1.4.2 · Fixed in 1.4.2 | affected |
References
3github.com
https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85 nvd.nist.gov
https://nvd.nist.gov/vuln/detail/CVE-2021-3978