Live threats

All CVEs / Git-scm

CVE-2021-40330Git-scm Git

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.9%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Aug 31, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
git-scmgit< 2.30.1
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.