CVE-2021-3978
JSON

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 packageVersionsReported by
octorpkibefore v1.4.2CVE List
github.com/cloudflare/cfrpki (Go)before 1.4.2GitHub Advisory Database, Go Vulnerability Database
cloudflare octorpkibefore 1.4.2NVD

All scores

cloudflare7.5high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-269CWE-281

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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

Sources

SourceRecordLicence
CVE ListCVE-2021-3978 changed 2025-02-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-3pqh-p72c-fj85 changed 2025-01-29CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0580 changed 2026-03-03CC-BY-4.0
NVDCVE-2021-3978 changed 2026-06-17Public domain