{"id":"CVE-2021-3978","aliases":["GHSA-3pqh-p72c-fj85","GO-2022-0580"],"url":"https://o3.security/vulnerability/CVE-2021-3978","summary":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","details":"### Impact\n\nWhen 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.  \n\n## For more information\n\nIf you have any questions or comments about this advisory email us at security@cloudflare.com","published":"2025-01-29T10:15:07.750Z","modified":"2026-07-09T00:36:37.195479Z","cvss":{"score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/cloudflare/cfrpki","fixedVersion":"1.4.2"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3978"},{"type":"PACKAGE","url":"https://github.com/cloudflare/cfrpki"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T00:36:37.195479Z"}}