Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cloudflare/cfrpki
  4. ›
  5. CVE-2021-3978

CVE-2021-3978: Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki

November 19, 2021 (updated January 29, 2025)

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.

References

  • github.com/advisories/GHSA-3pqh-p72c-fj85
  • github.com/cloudflare/cfrpki
  • github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85
  • nvd.nist.gov/vuln/detail/CVE-2021-3978

Code Behaviors & Features

Detect and mitigate CVE-2021-3978 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.2

Fixed versions

  • 1.4.2

Solution

Upgrade to version 1.4.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management
  • CWE-281: Improper Preservation of Permissions

Source file

go/github.com/cloudflare/cfrpki/CVE-2021-3978.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.