CVE-2021-40330
7.5 HIGHgit_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...
Published: 2021-08-31 · Last updated: 2026-06-17
Severity and scoring
- CVSS
- 7.5 HIGH
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
| Vendor | Product |
|---|---|
| debian | debian_linux, git |
| git-scm | debian_linux, git |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2021-40330
- [Patch]https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473
- [Patch]https://github.com/git/git/compare/v2.30.0...v2.30.1
- [Other]https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html
- [Patch]https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473
- [Patch]https://github.com/git/git/compare/v2.30.0...v2.30.1
- [Other]https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html
Related CVEs
Same vendor
- CVE-2026-49975 — Memory Allocation with Excessive Size Value vulnerability in Apache HTTP Server's mod_http leads to denial of service via malicious HTTP ... (7.5 HIGH)
- CVE-2026-31431 — In the Linux kernel, the following vulnerability has been resolved: crypto: algif_aead - Revert to operating out-of-place This mostly r... (7.8 HIGH)
- CVE-2026-4775 — A flaw was found in the libtiff library (7.8 HIGH)
- CVE-2026-3497 — Vulnerability in the OpenSSH GSSAPI delta included in various Linux distributions (7.5 HIGH)
- CVE-2026-2219 — It was discovered that dpkg-deb (a component of dpkg, the Debian package management system) does not properly validate the end of the dat... (7.5 HIGH)