Medium severity · published Jan 29, 2025
CVE-2021-3978
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
5.5
CVSS
0.1%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 4% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OC
octorpki · Cloudflare
before v1.4.2 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3978
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-3978
Vendor Advisory
https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85
More from octorpki
9.8
CVE-2021-3907
OctoRPKI does not escape a URI with a filename containing "..", this allows a repository to create a file, (ex
7.5
CVE-2022-3616
OctoRPKI crash when maximum iterations number is reached
7.5
CVE-2021-3910
OctoRPKI crashes when encountering a repository that returns an invalid ROA (just an encoded NUL (\0) character)
7.5
CVE-2021-3909
OctoRPKI does not limit the length of a connection, allowing for a slowloris DOS attack to take place which makes OctoRPKI wait forever
7.5
CVE-2021-3908
OctoRPKI does not limit the depth of a certificate chain, allowing for a CA to create children in an ad-hoc fashion, thereby making tree traversal never end
