CVE-2021-40330

Published: 31 August 2021

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.

Priority

Medium

CVSS 3 base score: 7.5

Status

Package Release Status
git
Launchpad, Ubuntu, Debian
Upstream
Released (1:2.30.1-1)
Ubuntu 21.10 (Impish Indri) Not vulnerable

Ubuntu 21.04 (Hirsute Hippo) Not vulnerable
(1:2.30.2-1ubuntu1)
Ubuntu 20.04 LTS (Focal Fossa)
Released (1:2.25.1-1ubuntu3.2)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (1:2.17.1-1ubuntu0.9)
Ubuntu 16.04 ESM (Xenial Xerus)
Released (1:2.7.4-0ubuntu1.10+esm1)
Ubuntu 14.04 ESM (Trusty Tahr) Does not exist

Patches:
Upstream: https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473