{"id":"CVE-2021-3978","aliases":["DEBIAN-CVE-2021-3978","DSA-5041-1","EUVD-2021-2286","GHSA-3pqh-p72c-fj85","GO-2022-0580","UBUNTU-CVE-2021-3978"],"status":"published","title":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00144,"percentile":0.03707,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-269","CWE-281"],"published":"2021-11-19T19:34:26Z","modified":"2026-10-23T18:03:32Z","fixes":[{"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","fixed_in":["1.4.2"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"cfrpki","fixed_in":["1.4.2-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/cloudflare/cfrpki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"cfrpki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.2-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"cfrpki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.2-1~deb11u1"}]}],"versions":["1.2.2-1","1.3.0-1","1.4.0-1"],"bundled":10},{"source":"osv","ecosystem":"Go","package":"github.com/cloudflare/cfrpki","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/cloudflare/cfrpki","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.2"}]}]}],"products":[{"vendor":"cloudflare","product":"octorpki"}],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85","tags":["Vendor Advisory","advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3978","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-3pqh-p72c-fj85"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3978","tags":["advisory"]},{"url":"https://github.com/cloudflare/cfrpki","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-3978","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3978","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3978","title":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","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.","status":"published","published":"2025-01-29T10:00:53.237Z","modified":"2025-02-12T16:03:40.405Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-2286","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.","status":"published","published":"2025-01-29T10:00:53Z","modified":"2025-02-12T16:03:40Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:03:58.326443Z"}],"ghsa":[{"id":"GHSA-3pqh-p72c-fj85","title":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","description":"### 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","status":"published","published":"2021-11-19T19:34:26Z","modified":"2025-01-29T16:56:35Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-269","CWE-281"],"updated_at":"2026-11-02T14:38:28.945236Z"}],"nvd":[{"id":"CVE-2021-3978","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.","status":"published","published":"2025-01-29T10:15:07.75Z","modified":"2026-06-17T04:06:19.79Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T14:07:08.629518Z"}],"osv":[{"id":"CVE-2021-3978","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.","status":"published","published":"2025-01-29T10:15:07.75Z","modified":"2026-10-20T10:54:54.852460311Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:20.843843Z"},{"id":"DEBIAN-CVE-2021-3978","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.","status":"published","published":"2025-01-29T10:15:07.75Z","modified":"2026-10-23T18:03:32.395148365Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"GHSA-3pqh-p72c-fj85","title":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","description":"### 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","status":"published","published":"2021-11-19T19:34:26Z","modified":"2025-01-29T16:56:35Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-269","CWE-281"],"updated_at":"2026-11-02T15:46:36.092962Z"},{"id":"UBUNTU-CVE-2021-3978","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.","status":"withdrawn","published":"2025-01-29T10:15:00Z","modified":"2025-07-16T07:43:10.085829Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:28.526929Z"},{"id":"DSA-5041-1","title":"cfrpki - security update","status":"published","published":"2022-01-11T00:00:00Z","modified":"2026-03-09T02:10:29.476256Z","updated_at":"2026-11-02T15:46:17.543497Z"},{"id":"GO-2022-0580","title":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki","description":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki","status":"published","published":"2024-08-21T15:11:38Z","modified":"2026-03-03T04:50:34.836662Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
