cbcvebase.
CVE-2021-40330
published 2021-08-31

CVE-2021-40330: 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…

PriorityP342high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
3.20%
86.5th percentile
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.

Affected

10 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiangit< git 1:2.30.1-1 (bookworm)git 1:2.30.1-1 (bookworm)
git-scmgit< 2.30.12.30.1
gitgit>= 0 < 1:2.30.1-11:2.30.1-1
gitgit>= 0 < 1:2.30.1-11:2.30.1-1
gitgit>= 0 < 1:2.30.1-11:2.30.1-1
gitgit>= 0 < 1:2.30.1-11:2.30.1-1
msrccbl_mariner_1.0_arm
msrccbl_mariner_1.0_x64
msrccm1_git_2.23.4-2_on_cbl_mariner_1.0

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.