Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-39253

MEDIUM 5.5EPSS 57%

Git subject to exposure of sensitive information via local clone of symbolic links

Mitigation

  • Upgrade git to 2.37.4 or later.

Who should check

  • Anyone running git < 2.30.6; < 2.31.5; < 2.32.4; < 2.33.5; < 2.34.5; < 2.35.5; < 2.36.3; < 2.37.4

Vulnerability facts

Affected
git < 2.30.6; < 2.31.5; < 2.32.4; < 2.33.5; < 2.34.5; < 2.35.5; < 2.36.3; < 2.37.4
Fixed in
git 2.30.6, git 2.31.5, git 2.32.4, git 2.33.5, git 2.34.5, git 2.35.5, git 2.36.3, git 2.37.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
0.87% chance of exploitation in 30 days (percentile 57, 2026-11-26)
CWE
CWE-200
Published
Modified

Description

Git is an open source, scalable, distributed revision control system. Versions 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 are subject to exposure of sensitive information to a malicious actor. When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of the source's `$GIT_DIR/objects` directory into the destination by either creating hardlinks to the source contents, or copying them (if hardlinks are disabled via `--no-hardlinks`). A malicious actor could convince a victim to clone a repository with a symbolic link pointing at sensitive information on the victim's machine. This can be done either by having the victim clone a malicious repository on the same machine, or having them clone a malicious repository embedded as a bare repository via a submodule from any source, provided they clone with the `--recurse-submodules` option. Git does not create symbolic links in the `$GIT_DIR/objects` directory. The problem has been patched in the versions published on 2022-10-18, and backported to v2.30.x. Potential workarounds: Avoid cloning untrusted repositories using the `--local` optimization when on a shared machine, either by passing the `--no-local` option to `git clone` or cloning from a URL that uses the `file://` scheme. Alternatively, avoid cloning repositories from untrusted sources with `--recurse-submodules` or run `git config --global protocol.file.allow user`.

Affected and fixed versions

Package / productAffectedFixedSource
git< 2.30.6; < 2.31.5; < 2.32.4; < 2.33.5; < 2.34.5; < 2.35.5; < 2.36.3; < 2.37.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-39253. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-39253.md
Affected: git < 2.30.6; < 2.31.5; < 2.32.4; < 2.33.5; < 2.34.5; < 2.35.5; < 2.36.3; < 2.37.4
Fixed in: git 2.30.6, git 2.31.5, git 2.32.4, git 2.33.5, git 2.34.5, git 2.35.5, git 2.36.3, git 2.37.4

Steps:
1. Search this machine and project for git: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-39253 being exploited?

There is no confirmed exploitation: CVE-2022-39253 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.87% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-39253?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2022-39253?

git < 2.30.6; < 2.31.5; < 2.32.4; < 2.33.5; < 2.34.5; < 2.35.5; < 2.36.3; < 2.37.4.

Is there a fix for CVE-2022-39253?

Yes. Fixed in git 2.30.6, git 2.31.5, git 2.32.4, git 2.33.5, git 2.34.5, git 2.35.5, git 2.36.3, git 2.37.4. Upgrade git to 2.37.4 or later.

How do I check if I'm affected by CVE-2022-39253?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors