CVE-2021-40330

Name
CVE-2021-40330
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473
MISC https://github.com/git/git/compare/v2.30.0...v2.30.1

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* git >= None < 2.30.1

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
git 3.11-main 2.24.4-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
git 3.12-main 2.26.3-r1 Natanael Copa <ncopa@alpinelinux.org> fixed