CVE-2021-40330

Summary

CVECVE-2021-40330
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-08-31 04:15:00 UTC
Updated2022-11-07 18:37:00 UTC
Descriptiongit_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.

Risk And Classification

Problem Types: NVD-CWE-noinfo

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Application Git Git All All All All
Application Git-scm Git All All All All

References

ReferenceSourceLinkTags
Comparing v2.30.0...v2.30.1 · git/git · GitHub MISC github.com
git_connect_git(): forbid newlines in host and path · git/git@a02ea57 · GitHub MISC github.com
[SECURITY] [DLA 3145-1] git security update MLIST lists.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179639 Debian Security Update for git (CVE-2021-40330)
  • 181127 Debian Security Update for git (DLA 3145-1)
  • 198498 Ubuntu Security Notification for Git Vulnerability (USN-5076-1)
  • 296067 Oracle Solaris 11.4 Support Repository Update (SRU) 33.94.0 Missing (CPUAPR2021)
  • 500223 Alpine Linux Security Update for git
  • 671147 EulerOS Security Update for git (EulerOS-SA-2021-2801)
  • 671189 EulerOS Security Update for git (EulerOS-SA-2021-2929)
  • 671201 EulerOS Security Update for git (EulerOS-SA-2022-1025)
  • 671205 EulerOS Security Update for git (EulerOS-SA-2022-1005)
  • 671277 EulerOS Security Update for git (EulerOS-SA-2022-1204)
  • 671309 EulerOS Security Update for git (EulerOS-SA-2022-1223)
  • 751203 OpenSUSE Security Update for git (openSUSE-SU-2021:3300-1)
  • 751224 OpenSUSE Security Update for git (openSUSE-SU-2021:1345-1)
  • 751260 SUSE Enterprise Linux Security Update for git (SUSE-SU-2021:3484-1)
  • 900328 CBL-Mariner Linux Security Update for git 2.23.4
  • 902800 Common Base Linux Mariner (CBL-Mariner) Security Update for git (5444)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report