Vulnerability · Published Jan 29, 2025 · Assigned by cloudflare

CVE-2021-3978Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki

High 7.5

In plain English

A high-severity privilege mismanagement in octorpki from Cloudflare. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.1%top 96.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12cfrpki1.4.2-1DEBIAN-CVE-2021-3978
Gogithub.com/cloudflare/cfrpki1.4.2GHSA-3pqh-p72c-fj85
Gogithub.com/cloudflare/cfrpki1.4.2GO-2022-0580
Ubuntu:22.04:LTScfrpki1.4.2-1UBUNTU-CVE-2021-3978

Affected products (as reported)

VendorProductVersions
Cloudflare octorpki 0 – before v1.4.2

Weakness: CWE-269 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H

References