CVE-2021-40330

High

Description

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.

SeverityHigh
CVSS7.5
Exploit probability87. percentile2.9%
ProductGit
PublishedAug 31, 2021
First seenAug 31, 2021

How to fix

Update
  • git-scm git2.30.1 or later

Affected products

ProductAffected versionsFixed in
git-scm gitv < 2.30.12.30.1
debian debian_linux10.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.