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, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
git (PTS)stretch (security), stretch1:2.11.0-3+deb9u7vulnerable
buster, buster (security)1:2.20.1-2+deb10u3vulnerable
bullseye1:2.30.2-1fixed
bookworm, sid1:2.33.0-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gitsource(unstable)1:2.30.1-1

Notes

[bullseye] - git <no-dsa> (Minor issue)
[buster] - 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