Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Git-Scm | Git | < 2.30.1 |
| Debian | Debian Linux | 10.0 |
References
- https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473ExploitPatchThird Party Advisory
- https://github.com/git/git/compare/v2.30.0...v2.30.1PatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00014.htmlMailing ListThird Party Advisory
- https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473ExploitPatchThird Party Advisory
- https://github.com/git/git/compare/v2.30.0...v2.30.1PatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00014.htmlMailing ListThird Party Advisory
FAQ
What is CVE-2021-40330?
CVE-2021-40330 is a vulnerability with a CVSS score of 7.5 (HIGH). 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://localhos...
How severe is CVE-2021-40330?
CVE-2021-40330 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-40330?
Check the references section above for vendor advisories and patch information. Affected products include: Git-Scm Git, Debian Debian Linux.