{"id":"CVE-2021-3978","aliases":["CVE-2021-3978","GHSA-3pqh-p72c-fj85","GO-2022-0580"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki","format":"markdown","source":"go"},{"lang":"es","text":"Al copiar archivos con rsync, octorpki utiliza el indicador \"-a\" 0, que obliga a rsync a copiar binarios con el bit suid establecido como root. Dado que la definición de servicio proporcionada tiene como valor predeterminado root (https://github.com/cloudflare/cfrpki/blob/master/package/octorpki.service), esto podría permitir un vector, cuando se combina con otra vulnerabilidad que hace que octorpki procese un archivo TAL malicioso, para una escalada de privilegios local.","source":"nvd"}],"published":"2021-11-19T19:34:26.000Z","modified":"2026-06-17T04:06:19.790Z","severity":{"scorer":"cloudflare","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"cloudflare","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-269","CWE-281"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"v1.4.2","status":"affected"}],"vendor":"Cloudflare","product":"octorpki","package":"octorpki","platforms":["Go"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.2"}],"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.2"}],"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","source":"go"},{"ranges":[{"status":"affected","fixed":"1.4.2"}],"vendor":"cloudflare","product":"octorpki","cpe":"cpe:2.3:a:cloudflare:octorpki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3978","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cloudflare/cfrpki","tags":["package"],"sources":["ghsa"]}],"credits":["Ties de Kock"],"assigner":"cloudflare","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-01-29T14:19:06.799Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3978","url":"https://www.cve.org/CVERecord?id=CVE-2021-3978","licence":"CVE Terms of Use","modified":"2025-02-12T16:03:40.405Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3pqh-p72c-fj85","url":"https://github.com/advisories/GHSA-3pqh-p72c-fj85","licence":"CC-BY-4.0","modified":"2025-01-29T16:56:35.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0580","url":"https://pkg.go.dev/vuln/GO-2022-0580","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:34.836Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3978","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3978","licence":"Public domain","modified":"2026-06-17T04:06:19.790Z"}],"updatedAt":"2026-11-25T22:58:08.992Z","epss":{"score":0.00144,"percentile":0.01873,"date":"2026-11-30T12:00:22.000Z"}}