{"cve":"CVE-2021-3978","nvd":{"published":"2025-01-29T10:15:07.750","modified":"2026-06-17T04:06:19.790","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-269"],"references":["https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85"],"products":["cloudflare:octorpki"],"source":"nvd","synced_at":"2026-10-19T21:58:41.599736885+00:00"},"epss":{"cve":"CVE-2021-3978","score":0.00144,"percentile":0.03708,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3pqh-p72c-fj85","url":"https://osv.dev/vulnerability/GHSA-3pqh-p72c-fj85","summary":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","modified":"2025-01-29T16:56:35Z","packages":[{"ecosystem":"Go","name":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","ranges":["<1.4.2"],"fixed":["1.4.2"]}]},{"id":"GO-2022-0580","url":"https://osv.dev/vulnerability/GO-2022-0580","summary":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki","modified":"2026-03-03T04:50:34.836662Z","packages":[{"ecosystem":"Go","name":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","ranges":["<1.4.2"],"fixed":["1.4.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}