{"id":"CVE-2021-3978","published":"2025-01-29T10:00:53Z","modified":"2025-02-12T16:03:40Z","title":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","vendor":"Cloudflare","product":"octorpki","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00144,"percentile":0.03746,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85","tags":[]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":0.75},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"cloudflare","affectedVersions":[{"vendor":"Cloudflare","product":"octorpki","versions":["< v1.4.2"]}],"capec":[{"id":"CAPEC-233","name":"Privilege Escalation"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-01-29T14:19:06.799392Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","vulnerableRanges":["<1.4.2"],"patched":["1.4.2"],"from":["GHSA-3pqh-p72c-fj85","GO-2022-0580"],"provenance":"source"}],"summary":{"text":"The octorpki component of Cloudflare's cfrpki project copies files with rsync using an option that preserves setuid bits, so binaries are copied with the suid bit set as root. Exploiting this requires local access and the chance to have octorpki process a malicious TAL file (through a separate vulnerability), after which an attacker could gain local privilege escalation, given that the provided service definition runs octorpki as root by default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:45Z"},"euvd":{"id":"EUVD-2021-2286","exploited":false,"provenance":"source"}}