Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2018-1000021

git: client prints server-sent ANSI escape codes to the terminal, allowing for unverified messages to potentially execute arbitrary commands

Overview

Published
9 Feb 2018
Modified
17 Jun 2026
Medium CVE
0 Registry packages
42 OS packages
6 Linux distributions
Yes Fix available

Description

GIT version 2.15.1 and earlier contains a Input Validation Error vulnerability in Client that can result in problems including messing up terminal configuration to RCE. This attack appear to be exploitable via The user must interact with a malicious git server, (or have their traffic modified in a MITM attack).

Source: OX vulnerability database

Severity

5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

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

Weakness: CWE-20

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 14 fixes

Photon OS 1 release · 1 package

fixed 1
git
Photon OS fixes for CVE-2018-1000021
ReleasePackageFixed in
5.0 git +2 2.43.7-1.ph5

Red Hat 2 releases · 2 packages

wont fix 2
emacs-git git
Red Hat fixes for CVE-2018-1000021
ReleasePackageFixed in
7 emacs-git +33 wont fix
8 git +14 wont fix

debian 4 releases · 1 package

affected 4
git
debian fixes for CVE-2018-1000021
ReleasePackageFixed in
11 git affected
12 git affected
13 git affected
14 git affected

echo 1 release · 1 package

fixed 1
git
echo fixes for CVE-2018-1000021
ReleasePackageFixed in
git 1:2.39.5-0+deb12u2

root.io debian 3 releases · 1 package

affected 3
rootio-git
root.io debian fixes for CVE-2018-1000021
ReleasePackageFixed in
11 rootio-git affected
12 rootio-git affected
13 rootio-git affected

seal debian 1 release · 1 package

fixed 3
git
seal debian fixes for CVE-2018-1000021
ReleasePackageFixed in
git +1 1:2.34.1-1ubuntu1.15+sp999
git +1 1:2.34.1-1ubuntu1.17+sp999
git +1 1:2.43.0-1ubuntu7.2+sp999

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.