Directory Traversal Affecting github.com/cloudflare/cfrpki/validator/pki package, versions <v1.4.0


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
26.09% (97th percentile)

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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCLOUDFLARECFRPKIVALIDATORPKI-1915649
  • published11 Nov 2021
  • disclosed10 Nov 2021
  • creditUnknown

Introduced: 10 Nov 2021

CVE-2021-3907  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade github.com/cloudflare/cfrpki/validator/pki to version v1.4.0 or higher.

Overview

Affected versions of this package are vulnerable to Directory Traversal which does not escape a URI with a filename containing "..". This allows a repository to create a file, which would then be written to disk outside the base cache folder.

CVSS Base Scores

version 3.1