CVE-2021-3978

Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki

State
Published
Severity
7.5 High
Published
Jan 29, 2025
Updated
Feb 12, 2025
Reserved
Nov 18, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:Hcloudflare

Weaknesses

  • CWE-269 Improper Privilege Management

Affected Products

ProductVersions
octorpkiCloudflare
  • before v1.4.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.