{"id":"GHSA-3pqh-p72c-fj85","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","aliases":["CVE-2021-3978","GO-2022-0580"],"modified":"2025-01-29T16:56:35Z","published":"2021-11-19T19:34:26Z","database_specific":{"cwe_ids":["CWE-269","CWE-281"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-11-19T13:10:27Z","nvd_published_at":"2025-01-29T10:15:07Z"},"references":[{"type":"WEB","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"}],"affected":[{"package":{"name":"github.com/cloudflare/cfrpki","ecosystem":"Go","purl":"pkg:golang/github.com/cloudflare/cfrpki"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-3pqh-p72c-fj85/GHSA-3pqh-p72c-fj85.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H"}]}