CVE-2021-40330
7.5
HIGH
CVSS 3.1
EPSS 0.54%
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.
How to fix CVE-2021-40330
To remediate CVE-2021-40330, upgrade the affected package to a fixed version below.
- Alpine/git—upgrade to 2.26.3-r1 or later
- —upgrade to 1:2.30.1-1 or later
Is CVE-2021-40330 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 2.26.3-r1
- from 0, < 1:2.30.1-1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |