CVE-2021-40330

NameCVE-2021-40330
Descriptiongit_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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3145-1, ELA-700-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
git (PTS)jessie, jessie (lts)1:2.1.4-2.1+deb8u14fixed
stretch (security)1:2.11.0-3+deb9u7vulnerable
stretch (lts), stretch1:2.11.0-3+deb9u11fixed
buster (security), buster, buster (lts)1:2.20.1-2+deb10u9fixed
bullseye1:2.30.2-1+deb11u2fixed
bullseye (security)1:2.30.2-1+deb11u3fixed
bookworm (security), bookworm1:2.39.5-0+deb12u1fixed
trixie1:2.45.2-1fixed
sid1:2.45.2-1.2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gitsourcejessie1:2.1.4-2.1+deb8u11ELA-700-1
gitsourcestretch1:2.11.0-3+deb9u8ELA-700-1
gitsourcebuster1:2.20.1-2+deb10u4DLA-3145-1
gitsource(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

Search for package or bug name: Reporting problems