CVE-2022-39253: Git - Exposure of Sensitive Information

git Updated 02 Oct 2025

Summary

19/10/2022
Yes i
Medium
5.5

CVE-2023-22490: Git is an open source, scalable, distributed revision control system. Affects git across 3 version ranges.

< 2.30.6-r0 >= 853373155dce195a91e6e41a58c8b8e5c5a94652, < 2d2fc8ce733f75f497faabab85c273658c9a5f81 < abd4d67ab0f84fff703fa14d9eebfd287b42daeb

Fixed in 2.30.6-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Git is an open source, scalable, distributed revision control system. It is widely used for version control and collaboration in software development projects. Git allows multiple developers to work on the same codebase simultaneously, tracking changes and managing different versions of files. It is a critical component in modern software development workflows.

Vulnerability Detail

The vulnerability, identified as CVE-2022-39253, affects versions of Git prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4. When performing a local clone, Git copies the contents of the source's $GIT_DIR/objects directory into the destination. This process involves creating hardlinks or copying the contents. However, Git does not create symbolic links in the $GIT_DIR/objects directory. A malicious actor can exploit this behavior by convincing a victim to clone a repository with a symbolic link pointing to sensitive information on the victim's machine. This can be achieved by having the victim clone a malicious repository on the same machine or cloning a malicious repository embedded as a bare repository via a submodule from any source, provided they clone with the --recurse-submodules option. The vulnerability exposes the victim's sensitive information to the attacker.

How To Fix

Minimum fixed version

2.30.6-r0

This is the first release that contains the fix.

sudo apk add --upgrade git

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

To mitigate the risk of this vulnerability, users can follow these workarounds:

  1. Avoid cloning untrusted repositories using the --local optimization when on a shared machine. This can be done by passing the --no-local option to git clone or cloning from a URL that uses the file:// scheme.
  2. Alternatively, avoid cloning repositories from untrusted sources with the --recurse-submodules option.
  3. Run the command git config --global protocol.file.allow user to allow cloning repositories with symbolic links.

Conclusion

The vulnerability in Git exposes sensitive information to malicious actors through the cloning process. It is crucial to update Git to the patched versions to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for git →

Share this vulnerability

FAQ

Git is an open source, distributed revision control system used for version control and collaboration in software development projects.

The vulnerability allows a malicious actor to expose sensitive information on a victim's machine by convincing them to clone a repository with a symbolic link pointing to the sensitive data.

To fix the vulnerability, update your Git installation to versions 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, or 2.37.4.

Yes, you can avoid cloning untrusted repositories using the --local optimization on shared machines, or avoid cloning repositories from untrusted sources with the --recurse-submodules option. Another workaround is to run the command git config --global protocol.file.allow user.

There are alternative version control systems available, but it is recommended to update Git to the patched versions to ensure the latest security fixes are applied.

Related vulnerabilities

Recent vulnerabilities recorded for git.

How To Fix

Minimum fixed version

2.30.6-r0

This is the first release that contains the fix.

sudo apk add --upgrade git

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback