Bug 1999755 (CVE-2021-40330) - CVE-2021-40330 git: unexpected cross-protocol requests via a repository path containing a newline character
Summary: CVE-2021-40330 git: unexpected cross-protocol requests via a repository path ...
Keywords:
Status: NEW
Alias: CVE-2021-40330
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2010570 2010571 2010572 2017789
Blocks: 1999757
TreeView+ depends on / blocked
 
Reported: 2021-08-31 17:15 UTC by Guilherme de Almeida Suckevicz
Modified: 2024-03-15 23:36 UTC (History)
17 users (show)

Fixed In Version: git 2.30.1
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in git where it 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. The highest threat from this vulnerability is to confidentiality.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-08-31 17:15:52 UTC
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.

Reference and upstream patch:
https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473


Note You need to log in before you can comment on or make changes to this bug.