Vulnerability in Git-Scm Git
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 requests, as demonstrated by the git://localhost:1234/%0d%0a%0d%0aGET%20/%20HTTP/1.1 substring.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.029, 87.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Git-Scm Git
- Debian Linux — versions 10.0
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (20142995/nuclei-templates, cyb3r-w0lf/nuclei-template-collection). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473 (Exploit, Patch, Third Party Advisory)
- github.com/git/git/compare/v2.30.0...v2.30.1 (Patch, Third Party Advisory)
- [debian-lts-announce] 20221010 [SECURITY] [DLA 3145-1] git security update (mailing-list, Mailing List, Third Party Advisory)