CVE-2021-3978 Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
MediumCVSS 5.5
EPSS 0.14%
- Published
- Updated
- Exploit status
- No public exploit known
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| cloudflare github.com/cloudflare/cfrpki(Go) | < 1.4.2 | 1.4.2 |
| debian/cfrpki(Debian:12) | < 1.4.2-1 | 1.4.2-1 |
| cloudflare OctoRPKI | < v1.4.2 | v1.4.2 |
| cloudflare OctoRPKI | < 1.4.2 | 1.4.2 |
| ubuntu/cfrpki(Ubuntu:22.04) | < 1.4.2-1 | 1.4.2-1 |
| ubuntu/cfrpki(Ubuntu:22.04) | = 1.2.2-1 | No fix listed |
| ubuntu/cfrpki(Ubuntu:22.04) | = 1.3.0-1 | No fix listed |
| ubuntu/cfrpki(Ubuntu:22.04) | = 1.4.0-1 | No fix listed |
References
- github.com issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- Debian Security Tracker CVE-2021-3978 vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking