CVE-2021-40330

git: unexpected cross-protocol requests via a repository path containing a newline character

Published Aug 31, 2021 CVSS 3.1 · 7.5 High EPSS 2.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3145-1 git security update
EUVD EUVD EUVD-2021-27510 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.
Ubuntu USN Ubuntu USN USN-5076-1 Git vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 2:27 AM
Reserved
Aug 31, 2021, 12:00 AM
Status
Modified
Published
Aug 31, 2021, 4:15 AM
Modified
Jun 17, 2026, 4:06 AM
Severity
Moderate
Public date
Jan 7, 2021, 12:00 AM