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

- Severity: High 7.5 (CVSS:3.1, scored by cloudflare) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 2% of CVEs (2026-11-30)
- Published: 2021-11-19T19:34:26.000Z
- Modified: 2026-06-17T04:06:19.790Z
- Also known as: GHSA-3pqh-p72c-fj85, GO-2022-0580
- Weaknesses: CWE-269, CWE-281
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: cloudflare

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

(As written by CVE List.)

## Affected

- octorpki: before v1.4.2
- github.com/cloudflare/cfrpki (Go): before 1.4.2
- cloudflare octorpki: before 1.4.2

## Every score

- cloudflare: CVSS:3.1 7.5 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3978> (advisory)
- <https://github.com/cloudflare/cfrpki> (package)

## Sources

- CVE List: [CVE-2021-3978](https://www.cve.org/CVERecord?id=CVE-2021-3978), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-3pqh-p72c-fj85](https://github.com/advisories/GHSA-3pqh-p72c-fj85), CC-BY-4.0, modified 2025-01-29
- Go Vulnerability Database: [GO-2022-0580](https://pkg.go.dev/vuln/GO-2022-0580), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-3978](https://nvd.nist.gov/vuln/detail/CVE-2021-3978), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3978 · Whole record: https://cve.day/CVE-2021-3978.json · Rebuilt by cve.day 2026-11-25T22:58:08.992Z
