CVE-2021-3978: cloudflare octorpki Improper Privilege Management
Vulnerability summary
CVE-2021-3978 is a high (CVSS 7.5) Improper Privilege Management vulnerability in cloudflare octorpki. EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 3.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1Timeline
- 29-01-2025PublishedVulnerability first disclosed.
- 12-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
0.14%
Chance of exploitation in the next 30 days
Percentile
3%
Versus all other CVEs
30-day change
0.00 pp
From 0.14% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Cloudflare1 product
- octorpki< v1.4.2 | < 1.4.2
Debian1 product
- cfrpki< 1.4.2-1
Github.com/cloudflare1 product
- cfrpki< 1.4.2
Ubuntu1 product
- cfrpki< 1.4.2-1
4 vendors · 4 products
References
6 links- github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85REPORTWEBAdvisoryVendor Advisory
- github.com/cloudflare/cfrpkiPACKAGE