CVE-2021-40330
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
git-scm gitbefore 2.30.1NVD
debian debian_linux10.0NVD

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-40330 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-40330 changed 2026-06-17Public domain