Name | CVE-2021-40330 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3145-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
git (PTS) | bullseye | 1:2.30.2-1+deb11u2 | fixed |
| bullseye (security) | 1:2.30.2-1+deb11u3 | fixed |
| bookworm, bookworm (security) | 1:2.39.5-0+deb12u1 | fixed |
| trixie | 1:2.45.2-1 | fixed |
| sid | 1:2.45.2-1.2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
git | source | buster | 1:2.20.1-2+deb10u4 | | DLA-3145-1 | |
git | source | (unstable) | 1:2.30.1-1 | | | |
Notes
[bullseye] - git <no-dsa> (Minor issue)
[stretch] - git <no-dsa> (Minor issue)
https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473