Improper Preservation of Permissions Affecting github.com/cloudflare/cfrpki/cmd/octorpki package, versions <1.4.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCLOUDFLARECFRPKICMDOCTORPKI-1924465
  • published21 Nov 2021
  • disclosed19 Nov 2021
  • creditTies de Kock

Introduced: 19 Nov 2021

CVE-2021-3978  (opens in a new tab)
CWE-281  (opens in a new tab)

How to fix?

Upgrade github.com/cloudflare/cfrpki/cmd/octorpki to version 1.4.1 or higher.

Overview

github.com/cloudflare/cfrpki/cmd/octorpki is a RPKI validator.

Affected versions of this package are vulnerable to Improper Preservation of Permissions. 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, 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.

CVSS Scores

version 3.1