# CVE-2021-40330

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-08-31 · Modified: 2024-08-04
- Aliases: ALPINE-CVE-2021-40330, SUSE-SU-2021:3300-1, SUSE-SU-2021:3484-1, UBUNTU-CVE-2021-40330, USN-5076-1, DEBIAN-CVE-2021-40330, openSUSE-SU-2021:1345-1, openSUSE-SU-2021:3300-1
- Record: https://cvemate.com/vulnerability/CVE-2021-40330 · JSON: https://cvemate.com/vulnerability/CVE-2021-40330/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 2.897%, percentile 87.383%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine git (Alpine Linux): \< 2.26.3-r1
- debian git (Debian): \< 1:2.30.1-1
- ubuntu git (Ubuntu): \< 1:2.7.4-0ubuntu1.10+esm1 \| \< 1:2.17.1-1ubuntu0.9 \| \< 1:2.25.1-1ubuntu3.2
- debian debian\_linux: 10.0
- git-scm git: \< 2.30.1
- opensuse git&distro=openSUSE Leap 15.2 (openSUSE): \< 2.26.2-lp152.2.12.1
- opensuse git&distro=openSUSE Leap 15.3 (openSUSE): \< 2.26.2-33.1
- suse git&distro=HPE Helion OpenStack 8 (SUSE Linux Enterprise): \< 2.26.2-27.49.3
- suse git&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2 (SUSE Linux Enterprise): \< 2.26.2-33.1
- suse git&distro=SUSE Linux Enterprise Module for Development Tools 15 SP2 (SUSE Linux Enterprise): \< 2.26.2-33.1
- suse git&distro=SUSE Linux Enterprise Server 12 SP5 (SUSE Linux Enterprise): \< 2.26.2-27.49.3
- suse git&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5 (SUSE Linux Enterprise): \< 2.26.2-27.49.3
- suse git&distro=SUSE Linux Enterprise Software Development Kit 12 SP5 (SUSE Linux Enterprise): \< 2.26.2-27.49.3
- suse git&distro=SUSE OpenStack Cloud 8 (SUSE Linux Enterprise): \< 2.26.2-27.49.3

## References

- <https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473>
- <https://github.com/git/git/compare/v2.30.0...v2.30.1>
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html>
- <https://security.alpinelinux.org/vuln/CVE-2021-40330>
- <https://www.suse.com/support/update/announcement/2021/suse-su-20213300-1/>
- <https://bugzilla.suse.com/1189992>
- <https://www.suse.com/security/cve/CVE-2021-40330>
- <https://www.suse.com/support/update/announcement/2021/suse-su-20213484-1/>
- <https://ubuntu.com/security/CVE-2021-40330>
- <https://ubuntu.com/security/notices/USN-5076-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-40330>
- <https://security-tracker.debian.org/tracker/CVE-2021-40330>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/HHADPIKH543AF7C3D6N7XU3ZL56DUAOW/>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VXUBRXLMWBRLT5YI5UGAWTWUKG3VAM46/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40330>

---

Data as of 2026-12-05T02:56:52.440Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
