{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3978","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 ","descriptionLong":"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.","published":"2025-01-29T10:00:53.237Z","updated":"2026-10-20T10:54:54.852460311Z","reserved":"2021-11-18T20:10:42.977Z","status":"Analyzed","rejected":false,"assigner":"cloudflare","metric":{"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","rating":"high","source":"cloudflare"},"metrics":[{"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","rating":"high","source":"cloudflare"},{"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","rating":"high","source":"cloudflare.com"},{"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","rating":"medium","source":"NVD"},{"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","rating":"medium","source":"OSV"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":["Cloudflare octorpki"],"affectedProducts":[{"vendor":"Cloudflare","product":"octorpki","defaultStatus":"unaffected","versions":[{"lessThan":"v1.4.2","status":"affected","version":"0","versionType":"semver"}],"platforms":["Go"]}],"packages":[{"ecosystem":"Go","name":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","ranges":["<1.4.2"],"fixed":["1.4.2"],"advisory":"GHSA-3pqh-p72c-fj85"}],"cwes":["CWE-269","CWE-281"],"aliases":["GHSA-3pqh-p72c-fj85","GO-2022-0580"],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85","tags":["Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3978","tags":["advisory"]},{"url":"https://github.com/cloudflare/cfrpki","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00144,"epssPercentile":0.03735,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3978","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3978","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3978","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3pqh-p72c-fj85","ok":true,"note":"GHSA-3pqh-p72c-fj85"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3978","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}