Description
git_connect_git in connect.c in Git before 2.30.1 allows a repository path to contain a newline character, which may result in unexpected cross-protocol requests, as demonstrated by the git://localhost:1234/%0d%0a%0d%0aGET%20/%20HTTP/1.1 substring.
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.30.1-1 | — |
| Debian 13 | git | 1:2.30.1-1 | — |
| Debian 12 | git | 1:2.30.1-1 | — |
| Debian 10 | git | 1:2.20.1-2+deb10u4 | DLA-3145-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | git | 1:2.25.1-1ubuntu3.2 | USN-5076-1 |
| Ubuntu 18.04 LTS | git | 1:2.17.1-1ubuntu0.9 | USN-5076-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+esm1 | USN-5076-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | git | 2.26.2-33.1 | SUSE-SU-2021:3300-1 |
| SLES 12 SP5 | git | 2.26.2-27.49.3 | SUSE-SU-2021:3484-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | git | 2.26.2-27.49.3 | SUSE-SU-2021:3484-1 |
| SUSE OpenStack Cloud 8 | git | 2.26.2-27.49.3 | SUSE-SU-2021:3484-1 |
| SUSE HPE Helion OpenStack 8 | git | 2.26.2-27.49.3 | SUSE-SU-2021:3484-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.3 | git | 2.26.2-33.1 | openSUSE-SU-2021:3300-1 |
| openSUSE Leap 15.2 | git | 2.26.2-lp152.2.12.1 | openSUSE-SU-2021:1345-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.12 | git | 2.26.3-r1 | — |
Advisories 7
- USN-5076-1 git vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-3145-1 git - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2021:1345-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:3300-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3300-1 Security update for git SUSE / openSUSE Security Updates · Feb 4, 2026
- VDE-2022-010 PHOENIX CONTACT: Multiple Linux component vulnerabilities fixed in latest AXC F x152 LTS release CERT@VDE · May 22, 2025
- SUSE-SU-2021:3484-1 Security update for git SUSE / openSUSE Security Updates · May 2, 2025