CVE-2021-40330

HIGHCVSS 7.5/10EPSS 3.20%

Last modified

CVE-2021-40330 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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.. EPSS estimates a 3.20% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS Probability
3.20%

86.5th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

VendorProductVersions
Git-ScmGit< 2.30.1
DebianDebian Linux10.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-40330?
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.
How severe is CVE-2021-40330?
CVE-2021-40330 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 3.20% probability of exploitation in the next 30 days.
How do I fix CVE-2021-40330?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-40330?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST