Vulnerability record · CVE-2021-40330 · published 31 August 2021
CVE-2021-40330: Git-scm git vulnerability
Git Scm · Git
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.
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/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473 | ExploitPatchThird Party Advisory |
| https://github.com/git/git/compare/v2.30.0...v2.30.1 | PatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html | Mailing ListThird Party Advisory |
| https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473 | ExploitPatchThird Party Advisory |
| https://github.com/git/git/compare/v2.30.0...v2.30.1 | PatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html | Mailing ListThird Party Advisory |
Track CVE-2021-40330 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-40330), CISA KEV, FIRST EPSS (scores of 2026-11-15). This page is refreshed as NVD updates the record.