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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.87%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 2.87% probability · 86th percentile
- CISA KEV
- Not listed
- Affected
- git-scm/git · debian/debian linux
- Source
- cve@mitre.org
References
- https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473Exploit, Patch, Third Party Advisory
- https://github.com/git/git/compare/v2.30.0...v2.30.1Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00014.htmlMailing List, Third Party Advisory
- https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473Exploit, Patch, Third Party Advisory
- https://github.com/git/git/compare/v2.30.0...v2.30.1Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00014.htmlMailing List, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.