CVE-2021-3978
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki
7.5
HIGH
CVSS 3.1
EPSS 0.07%
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.
How to fix CVE-2021-3978
To remediate CVE-2021-3978, upgrade the affected package to a fixed version below.
- —upgrade to 1.4.2-1~deb11u1 or later
- —upgrade to 1.4.2 or later
- —upgrade to 1.4.2 or later
Is CVE-2021-3978 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0, < 1.4.2-1~deb11u1
- from 0, < 1.4.2
- from 0, < 1.4.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |