Arbitrary File Read Affecting git/git package, versions [,2.30.8)[2.31.0,2.31.7)[2.32.0,2.32.6)[2.33.0,2.33.7)[2.34.0,2.34.7)[2.35.0,2.35.7)[2.36.0,2.36.5)[2.37.0,2.37.6)[2.38.0,2.38.4)[2.39.0,2.39.2)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.06% (29th 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 Arbitrary File Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-GITGIT-3320486
  • published15 Feb 2023
  • disclosed15 Feb 2023
  • credityvvdwf

Introduced: 15 Feb 2023

CVE-2023-22490  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade git/git to version 2.30.8, 2.31.7, 2.32.6, 2.33.7, 2.34.7, 2.35.7, 2.36.5, 2.37.6, 2.38.4, 2.39.2 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary File Read when cloning a malicious repository whose objects directory is a symbolic link. Attackers with knowledge of specific file paths can expose the content of those files.

Workaround

This vulnerability can be avoided by cloning repositories without recursively cloning their submodules. By checking the .gitmodules at each level for suspicious URLs and running git submodule update on directories one by one, the same functionality is achieved.

CVSS Scores

version 3.1