Vulnerability Details : 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.
Products affected by CVE-2021-40330
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
- cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-40330
0.34%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 72 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-40330
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
References for CVE-2021-40330
-
https://github.com/git/git/compare/v2.30.0...v2.30.1
Comparing v2.30.0...v2.30.1 · git/git · GitHubPatch;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html
[SECURITY] [DLA 3145-1] git security updateMailing List;Third Party Advisory
-
https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473
git_connect_git(): forbid newlines in host and path · git/git@a02ea57 · GitHubExploit;Patch;Third Party Advisory
Jump to