Skip to main content
← All vulnerabilities
CVE-2021-3978GHSA-3PQH-P72C-FJ85GO-2022-0580

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in v1.4.2, 1.4.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • octorpki

    fixed in v1.4.2

  • github.com/cloudflare/cfrpkiGo

    fixed in 1.4.2

References 1

GitHub · cloudflare/cfrpki