7.5high
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki
- Severity
- 7.5high CVSS:3.1 by cloudflare
- Exploit likelihood
- 0.14% (higher than 2% of CVEs)
- Published
- Last changed
- Assigned by
- cloudflare
- Also known as
- GHSA-3pqh-p72c-fj85GO-2022-0580
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
| Product or package | Versions | Reported by |
|---|---|---|
| octorpki | before v1.4.2 | CVE List |
| github.com/cloudflare/cfrpki (Go) | before 1.4.2 | GitHub Advisory Database, Go Vulnerability Database |
| cloudflare octorpki | before 1.4.2 | NVD |
All scores
| cloudflare | 7.5high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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 security@cloudflare.com
Go Vulnerability Database
Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki in github.com/cloudflare/cfrpki
NVD (es)
Al copiar archivos con rsync, octorpki utiliza el indicador "-a" 0, que obliga a rsync a copiar binarios con el bit suid establecido como root. Dado que la definición de servicio proporcionada tiene como valor predeterminado root (https://github.com/cloudflare/cfrpki/blob/master/package/octorpki.service), esto podría permitir un vector, cuando se combina con otra vulnerabilidad que hace que octorpki procese un archivo TAL malicioso, para una escalada de privilegios local.
References
| https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85 | advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-3978 | advisory | |
| https://github.com/cloudflare/cfrpki | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3978 changed 2025-02-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3pqh-p72c-fj85 changed 2025-01-29 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0580 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2021-3978 changed 2026-06-17 | Public domain |