7.5high
gitconnectgit in connect.c in Git before 2.30.1 allows a repository path to contain a newline character, which may result in unexpected cro…
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 2.90% (higher than 87% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| git-scm git | before 2.30.1 | NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
What each source says
CVE List
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.
NVD (es)
La función git_connect_git en el archivo connect.c en Git versiones anteriores a 2.30.1, permite que la ruta de un repositorio contenga un carácter de nueva línea, que puede resultar en peticiones inesperadas entre protocolos, como es demostrado en la subcadena git://localhost:1234/%0d%0a%0d%0aGET%20/%20HTTP/1.1
References
| https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473 | exploit, patch, third-party-advisory | |
| https://github.com/git/git/compare/v2.30.0...v2.30.1 | patch, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html | mailing-list, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-40330 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-40330 changed 2026-06-17 | Public domain |