CVE-2021-3978
MEDIUM 5.5CVSS 3.1Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
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.
- Published
- 29 Jan 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cna@cloudflare.com
- NVD status
- Analyzed
- Weakness
- CWE-269CWE-281
- Also known as
- GHSA-3pqh-p72c-fj85GO-2022-0580
- Sources
- NVDJSONOSV GHSA-3pqh-p72c-fj85JSONOSV GO-2022-0580JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@cloudflare.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cloudflare | octorpkicpe:2.3:a:cloudflare:octorpki:*:*:*:*:*:*:*:* |
< 1.4.2 | 1.4.2 |
| OSV | Go | github.com/cloudflare/cfrpki | < 1.4.2 | 1.4.2 |
References
- https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85 · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-3978 · ADVISORY
- https://github.com/cloudflare/cfrpki · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 29 Jan 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Nov 2021)