Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | git | 1:2.39.2-1 | — |
| Debian 13 | git | 1:2.39.2-1 | — |
| Debian 12 | git | 1:2.39.2-1 | — |
| Debian 11 | git | 1:2.30.2-1+deb11u2 | DSA-5357-1 |
| Debian 10 | git | 1:2.20.1-2+deb10u8 | DLA-3338-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | git | 1:2.34.1-1ubuntu1.8 | USN-5871-1 |
| Ubuntu 20.04 LTS | git | 1:2.25.1-1ubuntu3.10 | USN-5871-1 |
| Ubuntu 18.04 LTS | git | 1:2.17.1-1ubuntu0.16 | USN-5871-2, USN-5871-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | git | 1:2.7.4-0ubuntu1.10+esm5 | USN-5871-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | git +14 | 2.39.3-1.el9_2 | RHSA-2023:3245 |
| RHEL 8 | git +14 | 2.39.3-1.el8_8 | RHSA-2023:3246 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.6 EUS | git +14 | 2.31.8-1.el8_6 | RHSA-2024:0407 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | git +14 | 2.39.3-1.el9_2 | ALSA-2023:3245 |
| AlmaLinux 8 | git +14 | 2.39.3-1.el8_8 | ALSA-2023:3246 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | git | 2.39.3-1.el8_8 | RLSA-2023:3246 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SLES 15 SP3 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SLES 15 SP2 | git | 2.26.2-150000.47.1 | SUSE-SU-2023:0418-1 |
| SLES 15 SP1 | git | 2.26.2-150000.47.1 | SUSE-SU-2023:0418-1 |
| SLES 12 SP5 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
Show 20 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP4 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
| SLES 12 SP2 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
| SLES for SAP 15 SP3 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SLES for SAP 15 SP2 | git | 2.26.2-150000.47.1 | SUSE-SU-2023:0418-1 |
| SLES for SAP 15 SP1 | git | 2.26.2-150000.47.1 | SUSE-SU-2023:0418-1 |
| SLES for SAP 12 SP5 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
| SLES for SAP 12 SP4 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
| SLE Real Time 15 SP3 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SLE HPC 15 SP3 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SLE HPC 15 SP2 | git | 2.26.2-150000.47.1 | SUSE-SU-2023:0418-1 |
| SLE HPC 15 SP1 | git | 2.26.2-150000.47.1 | SUSE-SU-2023:0418-1 |
| SUSE OpenStack Cloud Crowbar 9 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
| SUSE OpenStack Cloud 9 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
| SUSE OpenStack Cloud 8 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
| SUSE Manager Server 4.2 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SUSE Manager Retail Branch Server 4.2 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SUSE Manager Proxy 4.2 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SUSE HPE Helion OpenStack 8 | git | 2.26.2-27.66.1 | SUSE-SU-2023:0426-1 |
| SUSE Enterprise Storage 7.1 | git | 2.35.3-150300.10.24.1 | SUSE-SU-2023:0430-1 |
| SUSE Enterprise Storage 7 | git | 2.26.2-150000.47.1 | SUSE-SU-2023:0418-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | git | 2.39.2-1.1 | openSUSE-SU-2024:12698-1 |
| openSUSE Leap 15.4 | git | 2.26.2-150000.47.1 | SUSE-SU-2023:0430-1, SUSE-SU-2023:0418-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | git | 2.39.2-r0 | — |
| Alpine v3.23 | git | 2.39.2-r0 | — |
| Alpine v3.22 | git | 2.39.2-r0 | — |
| Alpine v3.21 | git | 2.39.2-r0 | — |
| Alpine v3.20 | git | 2.39.2-r0 | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | git | 2.39.2-r0 | — |
| Alpine v3.18 | git | 2.39.2-r0 | — |
| Alpine v3.17 | git | 2.38.4-r0 | — |
| Alpine v3.16 | git | 2.36.5-r0 | — |
| Alpine v3.15 | git | 2.34.7-r0 | — |
| Alpine v3.14 | git | 2.32.6-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | git +16 | 2.39.2-1.amzn2023.0.1 | ALAS2023-2023-113 |
| Amazon Linux 2 | git +16 | 2.39.2-1.amzn2.0.1 | ALAS2-2023-1984 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | git +14 | 2.39.3-1.el9_2 | ELSA-2023-3245 |
| Oracle Linux 8 | git +14 | 2.39.3-1.el8_8 | ELSA-2023-3246 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | git | 2.39.2-r1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
smash8tap/CVE-2023-22490_PoC ★ 0 · Mar 1, 2023
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 23
- ALSA-2023:3245 Important: git security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2023:3246 Important: git security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2024-0794 Dell ECS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- RHSA-2024:0407 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2023:3246 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2023:3245 Red Hat Security Advisory: git security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-5871-1 git vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DSA-5357-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3338-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-5871-2 git regression Ubuntu Security Notices (USN) · Feb 10, 2026
- RLSA-2023:3246 Important: git security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2023:0430-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:0418-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12698-1 git-2.39.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:0426-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-1424 Xerox FreeFlow Print Server für Solaris: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 6, 2025
- ICSA-24-046-11 Siemens SCALANCE XCM-/XRM-300 CISA ICS & IT advisories · Feb 13, 2024
- SSA-806742 SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4 Siemens ProductCERT · Feb 13, 2024
- WID-SEC-2023-0371 git und GitLab: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 25, 2024
- ELSA-2023-3246 Important: git security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 24, 2023
- ELSA-2023-3245 Important: git security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 23, 2023
- ALAS2-2023-1984 Moderate: git security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Mar 7, 2023
- ALAS2023-2023-113 Moderate: git security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 22, 2023