{"id":"CVE-2021-3978","state":"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.","publishedAt":"2025-01-29T10:00:53.237Z","updatedAt":"2025-02-12T16:03:40.405Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","source":"cloudflare"},"assigner":"cloudflare","products":["Cloudflare octorpki"],"affected":[{"vendor":"Cloudflare","product":"octorpki","packageName":"octorpki","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"v1.4.2","versionType":"semver"}],"collectionURL":"https://github.com/cloudflare/cfrpki/cmd/octorpki","platforms":["Go"]}],"references":["https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85"],"weaknesses":["CWE-269"],"ingestedAt":"2026-10-29T19:48:55.807Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/3xxx/CVE-2021-3978.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-3978","state":"PUBLISHED","datePublished":"2025-01-29T10:00:53.237Z","dateUpdated":"2025-02-12T16:03:40.405Z","assignerShortName":"cloudflare","assignerOrgId":"a22f1246-ba21-4bb4-a601-ad51614c1513","dateReserved":"2021-11-18T20:10:42.977Z"},"containers":{"cna":{"title":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Cloudflare","product":"octorpki","packageName":"octorpki","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"v1.4.2","versionType":"semver"}],"collectionURL":"https://github.com/cloudflare/cfrpki/cmd/octorpki","platforms":["Go"]}],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-269","description":"CWE-269 Improper Privilege Management","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"cloudflare","orgId":"a22f1246-ba21-4bb4-a601-ad51614c1513","dateUpdated":"2025-01-29T10:00:53.237Z"},"credits":[{"lang":"en","type":"finder","value":"Ties de Kock"}],"impacts":[{"capecId":"CAPEC-233","descriptions":[{"lang":"en","value":"CAPEC-233 Privilege Escalation"}]}],"source":{"advisory":"GHSA-3pqh-p72c-fj85","discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-29T14:19:06.799392Z","id":"CVE-2021-3978","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-12T16:03:40.405Z"}}]}}}