CVE-2021-3978
published 2025-01-29CVE-2021-3978: 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…
PriorityP426medium5.5CVSS 3.1
AVLACLPRLUINSUCNIHAN
EPSS
0.14%
3.9th percentile
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
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| cloudflare | octorpki | < v1.4.2 | v1.4.2 |
| cloudflare | octorpki | < 1.4.2 | 1.4.2 |
| debian | cfrpki | < cfrpki 1.4.2-1 (bookworm) | cfrpki 1.4.2-1 (bookworm) |
| github.com | cloudflare_cfrpki | >= 0 < 1.4.2 | 1.4.2 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
osv5.5MEDIUM
vendor_debian7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2021-3978: cfrpki - When copying files with rsync, octorpki uses the "-a" flag 0, which forces rsync...
vendor_debian·2021·CVSS 7.5
CVE-2021-3978 [HIGH] CVE-2021-3978: cfrpki - When copying files with rsync, octorpki uses the "-a" flag 0, which forces rsync...
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.
Scope: local
bookworm: resolved (fixed in 1.4.2-1)
bullseye: resolved (fixed in 1.4.2-1~deb11u1)
OSV
CVE-2021-3978: When copying files with rsync, octorpki uses the "-a" flag 0, which forces rsync to copy binaries with the suid bit set as root
osv·2025-01-29·CVSS 5.5
CVE-2021-3978 [MEDIUM] CVE-2021-3978: When copying files with rsync, octorpki uses the "-a" flag 0, which forces rsync to copy binaries with the suid bit set as root
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.
OSV
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki
osv·2024-08-21
CVE-2021-3978 Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki
OSV
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
osv·2021-11-19
CVE-2021-3978 [HIGH] Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
### Impact
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.
## For more information
If you have any questions or comments about this advisory email us at [email protected]
GHSA
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
ghsa·2021-11-19
CVE-2021-3978 [HIGH] CWE-269 Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
### Impact
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.
## For more information
If you have any questions or comments about this advisory email us at [email protected]
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-01-29
Published