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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-01-29 · Modified: 2025-02-12
- Aliases: UBUNTU-CVE-2021-3978, DEBIAN-CVE-2021-3978, GHSA-3pqh-p72c-fj85, GO-2022-0580
- Record: https://cvemate.com/vulnerability/CVE-2021-3978 · JSON: https://cvemate.com/vulnerability/CVE-2021-3978/json

## 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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.144%, percentile 3.847%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- cloudflare octorpki: \< v1.4.2 \| \< 1.4.2
- debian cfrpki (Debian): \< 1.4.2-1
- ubuntu cfrpki (Ubuntu): \< 1.4.2-1
- github.com/cloudflare cfrpki (Go): \< 1.4.2

## References

- <https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85>
- <https://ubuntu.com/security/CVE-2021-3978>
- <https://www.cve.org/CVERecord?id=CVE-2021-3978>
- <https://security-tracker.debian.org/tracker/CVE-2021-3978>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3978>
- <https://github.com/cloudflare/cfrpki>

---

Data as of 2026-12-05T10:56:26.511Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
