# CVE-2023-22490: Git vulnerable to local clone-based data exfiltration with non-local transports

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-02-14 · Modified: 2026-10-08
- Aliases: ALPINE-CVE-2023-22490, UBUNTU-CVE-2023-22490, USN-5871-2, DEBIAN-CVE-2023-22490, CGA-2c93-xww8-7hv8, CGA-7rch-f29w-7fpg
- Record: https://cvemate.com/vulnerability/CVE-2023-22490 · JSON: https://cvemate.com/vulnerability/CVE-2023-22490/json

## Description

```text
Git is a revision control system. Using a specially-crafted repository, Git prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8 can be tricked into using its local clone optimization even when using a non-local transport. Though Git will abort local clones whose source `$GIT_DIR/objects` directory contains symbolic links, the `objects` directory itself may still be a symbolic link. These two may be combined to include arbitrary files based on known paths on the victim's filesystem within the malicious repository's working copy, allowing for data exfiltration in a similar manner as CVE-2022-39253.

A fix has been prepared and will appear in v2.39.2 v2.38.4 v2.37.6 v2.36.5 v2.35.7 v2.34.7 v2.33.7 v2.32.6, v2.31.7 and v2.30.8. If upgrading is impractical, two short-term workarounds are available. Avoid cloning repositories from untrusted sources with `--recurse-submodules`. Instead, consider cloning repositories without recursively cloning their submodules, and instead run `git submodule update` at each layer. Before doing so, inspect each new `.gitmodules` file to ensure that it does not contain suspicious module URLs.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.711%, percentile 54.919%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine git (Alpine Linux): ≥ 2.31.0, \< 2.32.6-r0 \| ≥ 2.31.0, \< 2.34.7-r0 \| ≥ 2.31.0, \< 2.36.5-r0 \| ≥ 2.31.0, \< 2.38.4-r0 \| ≥ 2.31.0, \< 2.39.2-r0 \| ≥ 2.32.0, \< 2.32.6-r0 \| ≥ 2.34.0, \< 2.34.7-r0 \| ≥ 2.36.0, \< 2.36.5-r0 \| ≥ 2.38.0, \< 2.38.4-r0 \| ≥ 2.39.0, \< 2.39.2-r0
- chainguard git (Chainguard): \< 2.39.2-r1
- wolfi git (Wolfi): \< 2.39.2-r1
- debian git (Debian): \< 1:2.39.2-1
- ubuntu git (Ubuntu): \< 1:2.17.1-1ubuntu0.17 \| \< 1:2.7.4-0ubuntu1.10+esm5 \| \< 1:2.17.1-1ubuntu0.16 \| \< 1:2.25.1-1ubuntu3.10 \| \< 1:2.34.1-1ubuntu1.8
- git-scm git: \< 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
- git git: ≥ 2.39.0, \< 2.39.2 \| ≥ 2.38.0, \< 2.38.4 \| ≥ 2.37.0, \< 2.37.6 \| ≥ 2.36.0, \< 2.36.5 \| ≥ 2.35.0, \< 2.35.7 \| ≥ 2.34.0, \< 2.34.7 \| ≥ 2.33.0, \< 2.33.7 \| ≥ 2.32.0, \< 2.32.6 \| ≥ 2.31.0, \< 2.31.7 \| \< 2.30.8

## References

- <https://github.com/git/git/security/advisories/GHSA-gw92-x3fm-3g3q>
- <https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85>
- <https://github.com/git/git/commit/c867e4fa180bec4750e9b54eb10f459030dbebfd>
- <https://security.gentoo.org/glsa/202312-15>
- <https://security.alpinelinux.org/vuln/CVE-2023-22490>
- <https://ubuntu.com/security/CVE-2023-22490>
- <https://ubuntu.com/security/notices/USN-5871-1>
- <https://www.cve.org/CVERecord?id=CVE-2023-22490>
- <https://ubuntu.com/security/notices/USN-5871-2>
- <https://launchpad.net/bugs/2008277>
- <https://security-tracker.debian.org/tracker/CVE-2023-22490>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22490.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22490>

---

Data as of 2026-12-05T03:09:10.468Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
