cve.bz

CVE-2021-40330

7.5 highExploit referenceEPSS 2.9%Fix available

High (7.5). EPSS 2.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-40330 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-40330?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-40330?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-40330 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
git-scm:gitbefore 2.30.1
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10git1:2.20.1-2+deb10u4DLA-3145-1
Debian12, 13, 14git1:2.30.1-1DEBIAN-CVE-2021-40330
Ubuntu18.04:LTSgit1:2.17.1-1ubuntu0.9UBUNTU-CVE-2021-40330 USN-5076-1
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.2UBUNTU-CVE-2021-40330 USN-5076-1
UbuntuPro:16.04:LTSgit1:2.7.4-0ubuntu1.10+esm1UBUNTU-CVE-2021-40330 USN-5076-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 2 moregit2.26.2-27.49.3SUSE-SU-2021:3484-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Development Tools 15 SP2git2.26.2-33.1SUSE-SU-2021:3300-1
openSUSELeap 15.2git2.26.2-lp152.2.12.1openSUSE-SU-2021:1345-1
openSUSELeap 15.3git2.26.2-33.1openSUSE-SU-2021:3300-1
Alpinev3.12git2.26.3-r1ALPINE-CVE-2021-40330

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7gitOut of support scope
Red Hat Enterprise Linux 8gitNot affected
Red Hat Enterprise Linux 9gitNot affected
Red Hat Software Collectionsrh-git227-gitWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-40330.

References

Check your stackJSON