Skip to content
OpenAdvisories
High · 7.5 CVE-2021-3978 EUVD-2021-2286GHSA-3pqh-p72c-fj85GO-2022-0580

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

Published Jan 29, 2025 · Updated Feb 12, 2025 · Assigned by cloudflare

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 products

VendorProductAffectedFixed
Cloudflare octorpki < v1.4.2 v1.4.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 cfrpki 1.4.2-1 —
Debian 11 cfrpki 1.4.2-1~deb11u1 DSA-5041-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/cloudflare/cfrpki < 1.4.2 1.4.2 GHSA-3pqh-p72c-fj85

Advisories 1

References