{"id":"CVE-2018-1000021","aliases":["DEBIAN-CVE-2018-1000021","EUVD-2018-1784","GHSA-vpq8-fvqp-vj6h","UBUNTU-CVE-2018-1000021"],"status":"published","title":"GIT version 2.15.1 and earlier contains a Input Validation Error vulnerability in Client that can...","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).","severity":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01074,"percentile":0.65179,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-20"],"published":"2018-02-09T23:00:00Z","modified":"2026-10-24T10:30:44Z","affected":[{"source":"osv","ecosystem":"Debian:12","package":"git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.39.2+next.20230215-1","1:2.39.2-1.1","1:2.39.5-0+deb12u1","1:2.39.5-0+deb12u2","1:2.39.5-0+deb12u3","1:2.40.0+next.20230313-1","1:2.40.0+next.20230319-1","1:2.40.0-1","1:2.40.0-1+alpha.1","1:2.40.1+next.20230424-1","1:2.40.1+next.20230427-1","1:2.40.1-1","1:2.40.1-1+alpha.1","1:2.42.0-1","1:2.43.0+next.20231120-1","1:2.43.0+next.20240104-1","1:2.43.0-1","1:2.43.0-1+alpha.2","1:2.45.1+next.20240516-1","1:2.45.1-1","1:2.45.2+next.20240614-1","1:2.45.2-1","1:2.45.2-1+alpha.1","1:2.45.2-1.1","1:2.45.2-1.1+alpha.1","1:2.45.2-1.2","1:2.45.2-1.3","1:2.47.1-1","1:2.47.2-0.1","1:2.47.2-0.2","1:2.48.0~rc1+next.20250101-1","1:2.49.0+next.20250314-1","1:2.49.0-1","1:2.49.0-2","1:2.49.0-3","1:2.50.0+next.20250615-1","1:2.50.0-1","1:2.50.0~rc0+next.20250528-1","1:2.50.1-0.1","1:2.51.0+next.20250825-1","1:2.51.0-1","1:2.53.0+next.20260227-1","1:2.53.0-1","1:2.53.0-1+hurd.1","1:2.55.0+next.20260731-1","1:2.55.0-1"]},{"source":"osv","ecosystem":"Debian:13","package":"git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.47.2-0.2","1:2.47.3-0+deb13u1","1:2.48.0~rc1+next.20250101-1","1:2.49.0+next.20250314-1","1:2.49.0-1","1:2.49.0-2","1:2.49.0-3","1:2.50.0+next.20250615-1","1:2.50.0-1","1:2.50.0~rc0+next.20250528-1","1:2.50.1-0.1","1:2.51.0+next.20250825-1","1:2.51.0-1","1:2.53.0+next.20260227-1","1:2.53.0-1","1:2.53.0-1+hurd.1","1:2.55.0+next.20260731-1","1:2.55.0-1"]},{"source":"osv","ecosystem":"Debian:14","package":"git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.47.2-0.2","1:2.48.0~rc1+next.20250101-1","1:2.49.0+next.20250314-1","1:2.49.0-1","1:2.49.0-2","1:2.49.0-3","1:2.50.0+next.20250615-1","1:2.50.0-1","1:2.50.0~rc0+next.20250528-1","1:2.50.1-0.1","1:2.51.0+next.20250825-1","1:2.51.0-1","1:2.53.0+next.20260227-1","1:2.53.0-1","1:2.53.0-1+hurd.1","1:2.55.0+next.20260731-1","1:2.55.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.5.0-1","1:2.6.2-1","1:2.6.3-1","1:2.6.4-1","1:2.7.0~rc3-1","1:2.7.0-1","1:2.7.3-0ubuntu1","1:2.7.4-0ubuntu1","1:2.7.4-0ubuntu1.1","1:2.7.4-0ubuntu1.2","1:2.7.4-0ubuntu1.3","1:2.7.4-0ubuntu1.4","1:2.7.4-0ubuntu1.5","1:2.7.4-0ubuntu1.6","1:2.7.4-0ubuntu1.7","1:2.7.4-0ubuntu1.8","1:2.7.4-0ubuntu1.9","1:2.7.4-0ubuntu1.10","1:2.7.4-0ubuntu1.10+esm1","1:2.7.4-0ubuntu1.10+esm3","1:2.7.4-0ubuntu1.10+esm4","1:2.7.4-0ubuntu1.10+esm5","1:2.7.4-0ubuntu1.10+esm6","1:2.7.4-0ubuntu1.10+esm7","1:2.7.4-0ubuntu1.10+esm8","1:2.7.4-0ubuntu1.10+esm9","1:2.7.4-0ubuntu1.10+esm10","1:2.7.4-0ubuntu1.10+esm11","1:2.7.4-0ubuntu1.10+esm13"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.14.1-1ubuntu4","1:2.15.1-1ubuntu2","1:2.17.0-1ubuntu1","1:2.17.1-1ubuntu0.1","1:2.17.1-1ubuntu0.3","1:2.17.1-1ubuntu0.4","1:2.17.1-1ubuntu0.5","1:2.17.1-1ubuntu0.6","1:2.17.1-1ubuntu0.7","1:2.17.1-1ubuntu0.8","1:2.17.1-1ubuntu0.9","1:2.17.1-1ubuntu0.10","1:2.17.1-1ubuntu0.11","1:2.17.1-1ubuntu0.12","1:2.17.1-1ubuntu0.13","1:2.17.1-1ubuntu0.14","1:2.17.1-1ubuntu0.15","1:2.17.1-1ubuntu0.16","1:2.17.1-1ubuntu0.17","1:2.17.1-1ubuntu0.18","1:2.17.1-1ubuntu0.18+esm1","1:2.17.1-1ubuntu0.18+esm2","1:2.17.1-1ubuntu0.18+esm3","1:2.17.1-1ubuntu0.18+esm4","1:2.17.1-1ubuntu0.18+esm6","1:2.17.1-1ubuntu0.18+esm8"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.20.1-2ubuntu1","1:2.24.0-1ubuntu1","1:2.24.0-1ubuntu2","1:2.25.0-1ubuntu1","1:2.25.1-1ubuntu1","1:2.25.1-1ubuntu2","1:2.25.1-1ubuntu3","1:2.25.1-1ubuntu3.1","1:2.25.1-1ubuntu3.2","1:2.25.1-1ubuntu3.3","1:2.25.1-1ubuntu3.4","1:2.25.1-1ubuntu3.5","1:2.25.1-1ubuntu3.6","1:2.25.1-1ubuntu3.7","1:2.25.1-1ubuntu3.8","1:2.25.1-1ubuntu3.10","1:2.25.1-1ubuntu3.11","1:2.25.1-1ubuntu3.12","1:2.25.1-1ubuntu3.13","1:2.25.1-1ubuntu3.14","1:2.25.1-1ubuntu3.14+esm1","1:2.25.1-1ubuntu3.14+esm2","1:2.25.1-1ubuntu3.14+esm3","1:2.25.1-1ubuntu3.14+esm4","1:2.25.1-1ubuntu3.14+esm5","1:2.25.1-1ubuntu3.14+esm6"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.32.0-1ubuntu1","1:2.33.1-1ubuntu1","1:2.34.1-1ubuntu1","1:2.34.1-1ubuntu1.1","1:2.34.1-1ubuntu1.2","1:2.34.1-1ubuntu1.4","1:2.34.1-1ubuntu1.5","1:2.34.1-1ubuntu1.6","1:2.34.1-1ubuntu1.8","1:2.34.1-1ubuntu1.9","1:2.34.1-1ubuntu1.10","1:2.34.1-1ubuntu1.11","1:2.34.1-1ubuntu1.12","1:2.34.1-1ubuntu1.13","1:2.34.1-1ubuntu1.14","1:2.34.1-1ubuntu1.15","1:2.34.1-1ubuntu1.16","1:2.34.1-1ubuntu1.17","1:2.34.1-1ubuntu1.18"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.40.1-1ubuntu1","1:2.43.0-1ubuntu1","1:2.43.0-1ubuntu5","1:2.43.0-1ubuntu6","1:2.43.0-1ubuntu7","1:2.43.0-1ubuntu7.1","1:2.43.0-1ubuntu7.2","1:2.43.0-1ubuntu7.3","1:2.43.0-1ubuntu7.4"]}],"products":[{"vendor":"git-scm","product":"git"}],"references":[{"url":"http://www.batterystapl.es/2018/01/security-implications-of-ansi-escape.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000021"},{"url":"https://github.com/advisories/GHSA-vpq8-fvqp-vj6h"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-1000021","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-1000021","tags":["report"]},{"url":"https://public-inbox.org/git/20180205204312.GB104086@aiede.svl.corp.google.com/","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-1000021","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-1000021","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).","status":"published","published":"2018-02-09T23:00:00Z","modified":"2024-08-05T12:33:48.619Z","updated_at":"2026-11-02T14:35:10.685174Z"}],"euvd":[{"id":"EUVD-2018-1784","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).","status":"published","published":"2018-02-09T23:00:00Z","modified":"2024-08-05T12:33:48Z","updated_at":"2026-11-03T02:39:27.400094Z"}],"ghsa":[{"id":"GHSA-vpq8-fvqp-vj6h","title":"GIT version 2.15.1 and earlier contains a Input Validation Error vulnerability in Client that can...","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).","status":"published","published":"2022-05-14T03:40:04Z","modified":"2023-02-02T05:09:55Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:52:46.436433Z"}],"nvd":[{"id":"CVE-2018-1000021","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).","status":"published","published":"2018-02-09T23:29:00.557Z","modified":"2026-06-17T01:32:13.42Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:04:22.897995Z"}],"osv":[{"id":"CVE-2018-1000021","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).","status":"published","published":"2018-02-09T23:29:00.557Z","modified":"2026-10-24T10:30:44.263323382Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:44:07.192756Z"},{"id":"DEBIAN-CVE-2018-1000021","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).","status":"published","published":"2018-02-09T23:29:00.557Z","modified":"2026-10-23T18:03:17.291940222Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:45:29.988046Z"},{"id":"UBUNTU-CVE-2018-1000021","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).","status":"published","published":"2018-02-09T23:29:00Z","modified":"2026-10-19T23:30:11.423415043Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:16.154988Z"}]}}
