Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1541854 - (CVE-2018-1000021) CVE-2018-1000021 git: client prints server-sent ANSI escape codes to the terminal, allowing for unverified messages to potentially execute arbitrary commands
CVE-2018-1000021 git: client prints server-sent ANSI escape codes to the term...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20180106,repor...
: Security
Depends On: 1541855 1541858 1554769 1554773 1541856
Blocks: 1541857
  Show dependency treegraph
 
Reported: 2018-02-04 23:57 EST by Sam Fowler
Modified: 2018-09-30 18:12 EDT (History)
19 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
It was found that the Git client printed server-sent ANSI escape codes to the terminal without any sanitization, leading to execution of arbitrary escape sequences in the terminal emulator. Exploitation of this flaw by a MitM attacker could potentially result in code execution, arbitrary file writes, or other attacks under highly specific circumstances dependent on the usage of a vulnerable terminal emulator by the user.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Sam Fowler 2018-02-04 23:57:29 EST
The Git client does not validate messages received from a Git server, and will print anything received, including ANSI escape codes, to the terminal. Under certain client environments, a malicious Git server or man-in-the-middle (MITM) could send malicious data, potentially resulting in execution of terminal escape sequences on the client machine. This could potentially result in code execution, arbitrary file writes, or other attacks when combined with the usage of vulnerable / buggy terminal emulators.

External References:

http://www.batterystapl.es/2018/01/security-implications-of-ansi-escape.html
Comment 1 Sam Fowler 2018-02-04 23:58:17 EST
Created git tracking bugs for this issue:

Affects: fedora-all [bug 1541855]
Comment 5 Todd Zullinger 2018-02-05 15:51:07 EST
Discussion on git mailing list:

https://public-inbox.org/git/20180205204312.GB104086@aiede.svl.corp.google.com/

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