Skip to content
OpenAdvisories
Unscored CVE-2021-40330 EUVD-2021-27510GHSA-8r9w-64qj-m6cj

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 c…

Published Aug 31, 2021 · Updated Aug 4, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS git 1:2.7.4-0ubuntu1.10+esm1 USN-5076-1
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
Alpine v3.12 git 2.26.3-r1 —

Advisories 7

References