LiveActive security incident?Get immediate response
CVE Record

CVE-2021-40330: git_connect_git in connect.c in Git before 2.30.1 allows a repository path to contain a newline character,...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Git versions before 2.30.1 could mishandle repository paths containing newline characters. A crafted repository URL could make Git send unexpected requests using another protocol. This matters most where automation, CI, developer tools, or services accept repository URLs from less-trusted users.

Executive priority

Treat this as a targeted remediation item, not an emergency based on current evidence. Prioritize internet-facing or multi-tenant automation that accepts repository URLs, then fold remaining Git upgrades into standard maintenance.

Technical view

The issue is in git_connect_git in connect.c. Git did not properly reject newline characters in repository paths, enabling unexpected cross-protocol requests. Public sources identify the fix in Git 2.30.1 and related upstream commit history. No CVSS, CWE, or product-specific package matrix is provided in the bundle.

Likely exposure

Exposure is most likely on systems running Git before 2.30.1, especially CI/CD, code hosting integrations, scanners, or build services that fetch repositories from externally supplied URLs.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation. The described abuse depends on a crafted repository path being processed by a vulnerable Git client.

Researcher notes

Evidence is limited to the CVE record, upstream Git fix references, and a Debian LTS advisory. The bundle does not provide CVSS, CWE classification, proof of active exploitation, or a comprehensive affected-package list.

Mitigation direction

  • Upgrade Git to 2.30.1 or a vendor-maintained fixed package.
  • Check operating system vendor advisories for backported Git security fixes.
  • Prioritize systems that clone or fetch repositories from user-controlled URLs.
  • Reduce acceptance of untrusted repository URLs where feasible.

Validation and detection

  • Inventory Git versions on developer workstations, build agents, and automation hosts.
  • Confirm vulnerable hosts are not running Git before 2.30.1 without vendor backports.
  • Review CI and service logs for repository URLs containing encoded control characters.
  • Verify vendor package changelogs include the CVE-2021-40330 fix.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-40330 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.