| 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, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-3145-1 |
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+deb11u5 | fixed | |
| bookworm | 1:2.39.5-0+deb12u3 | fixed | |
| bookworm (security) | 1:2.39.5-0+deb12u2 | fixed | |
| trixie | 1:2.47.3-0+deb13u1 | fixed | |
| forky | 1:2.53.0-1 | fixed | |
| sid | 1:2.55.0-1 | 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 |
[bullseye] - git <no-dsa> (Minor issue)
[stretch] - git <no-dsa> (Minor issue)
https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473