Vulnerability Name:

CVE-2021-40330 (CCN-208468)

Assigned:2021-08-31
Published:2021-08-31
Updated:2022-11-07
Summary: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.
CVSS v3 Severity:7.5 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)
6.5 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): None
Availibility (A): None
6.5 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N)
5.7 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
6.4 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-noinfo
Vulnerability Consequences:Bypass Security
References:Source: MITRE
Type: CNA
CVE-2021-40330

Source: XF
Type: UNKNOWN
git-cve202140330-sec-bypass(208468)

Source: CCN
Type: GitHub Web site
git_connect_git(): forbid newlines in host and path

Source: MISC
Type: Exploit, Patch, Third Party Advisory
https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/git/git/compare/v2.30.0...v2.30.1

Source: MLIST
Type: Mailing List, Third Party Advisory
[debian-lts-announce] 20221010 [SECURITY] [DLA 3145-1] git security update

Source: CCN
Type: IBM Security Bulletin 6610345 (Watson Speech Services Cartridge for Cloud Pak for Data)
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data is vulnerable to a security restrictions bypass in Git (CVE-2021-40330)

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2021-40330

Vulnerable Configuration:Configuration 1:
  • cpe:/a:git-scm:git:*:*:*:*:*:*:*:* (Version < 2.30.1)

  • Configuration 2:
  • cpe:/o:debian:debian_linux:10.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:95399
    P
    Security update for virglrenderer (Important)
    2022-07-14
    oval:org.opensuse.security:def:3495
    P
    librelp-devel-1.2.15-1.15 on GA media (Moderate)
    2022-06-22
    oval:org.opensuse.security:def:94607
    P
    libXext-devel-1.3.3-1.30 on GA media (Moderate)
    2022-06-22
    oval:org.opensuse.security:def:94917
    P
    ibus-chewing-1.6.1-1.53 on GA media (Moderate)
    2022-06-22
    oval:org.opensuse.security:def:101630
    P
    Security update for the Linux Kernel (Critical)
    2022-02-11
    oval:org.opensuse.security:def:58851
    P
    Security update for git (Low)
    2021-10-20
    oval:org.opensuse.security:def:34571
    P
    Security update for git (Low)
    2021-10-20
    oval:org.opensuse.security:def:84227
    P
    Security update for git (Low)
    2021-10-20
    oval:org.opensuse.security:def:60394
    P
    Security update for git (Low)
    2021-10-20
    oval:org.opensuse.security:def:26153
    P
    Security update for git (Low)
    2021-10-20
    oval:org.opensuse.security:def:87492
    P
    Security update for git (Low)
    2021-10-20
    oval:org.opensuse.security:def:33028
    P
    Security update for git (Low)
    2021-10-20
    oval:org.opensuse.security:def:111081
    P
    Security update for git (Low)
    2021-10-11
    oval:org.opensuse.security:def:66940
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:73706
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:108778
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:111737
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:102112
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:74665
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:64584
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:4508
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:107986
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:76008
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:101320
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:65597
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:5851
    P
    Security update for git (Low)
    2021-10-06
    oval:org.opensuse.security:def:108296
    P
    Security update for git (Low)
    2021-10-06
    BACK
    git-scm git *
    debian debian linux 10.0