Skip to content
Fencer Vulns
high 7.5

CVE-2021-3978 json

Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki

published 2021-11-19 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-2286 , GHSA-3pqh-p72c-fj85 , GO-2022-0580

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.1%
EPSS 0.1% chance of exploitation in 30 days, percentile 3%
public exploits
0
none known

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.

Patch / fix

  • go github.com/cloudflare/cfrpki 1.4.2
  • Cloudflare octorpki v1.4.2
  • cfrpki Debian 12 1.4.2-1

debian advisories DEBIAN-CVE-2021-3978

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
21 mo ago

Exploit prediction

0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
go github.com/cloudflare/cfrpki
<1.4.2
1.4.2

Affected products

  • Cloudflare octorpki

Classification

Weakness
  • CWE-269 Improper Privilege Management
  • CWE-281 Improper Preservation of Permissions

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.