{"id":"CVE-2021-25743","aliases":["CVE-2021-25743","GHSA-f9jg-8p32-2f55","GO-2022-0983"],"related":["CGA-g2xf-r675-cc5v"],"kind":"vulnerability","state":"published","title":"ANSI escape characters in kubectl output are not being filtered","summary":"kubectl does not neutralize escape, meta or control sequences contained in the raw data it outputs to a terminal. This includes but is not limited to the unstructured string fields in objects such as Events.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"kubectl does not neutralize escape, meta or control sequences contained in the raw data it outputs to a terminal. This includes but is not limited to the unstructured string fields in objects such as Events.","source":"cvelist"},{"lang":"en","text":"kubectl (k8s.io/kubernetes/pkg/kubectl) does not neutralize escape, meta or control sequences contained in the raw data it outputs to a terminal. This includes but is not limited to the unstructured string fields in objects such as Events.","format":"markdown","source":"ghsa"},{"lang":"en","text":"ANSI escape characters not filtered in kubectl in k8s.io/kubernetes","format":"markdown","source":"go"},{"lang":"es","text":"kubectl no neutraliza las secuencias de escape, meta o de control contenidas en los datos brutos que envía a un terminal. Esto incluye, pero no se limita, a los campos de cadena no estructurados en objetos como los Eventos","source":"nvd"}],"published":"2022-01-07T00:00:12.399Z","modified":"2026-09-10T03:49:10.759Z","severity":{"scorer":"kubernetes","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N","score":3,"rating":"LOW"},"severities":[{"scorer":"kubernetes","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N","score":3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N","score":3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N","score":3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:S/C:N/I:P/A:N","score":2.1,"rating":"LOW"}],"cwes":["CWE-150"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"1.23.1","status":"affected"},{"type":"custom","introduced":"next of 1.23.1","fixed":"unspecified","status":"unknown"},{"type":"custom","introduced":"unspecified","lastAffected":"1.22.5","status":"affected"},{"type":"custom","introduced":"next of 1.22.5","fixed":"unspecified","status":"unknown"},{"type":"custom","introduced":"unspecified","lastAffected":"1.21.8","status":"affected"},{"type":"custom","introduced":"next of 1.21.8","fixed":"unspecified","status":"unknown"},{"type":"custom","introduced":"unspecified","lastAffected":"1.20.14","status":"affected"},{"type":"custom","introduced":"next of 1.20.14","fixed":"unspecified","status":"unknown"}],"vendor":"Kubernetes","product":"Kubernetes","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.26.0-alpha.3"}],"ecosystem":"Go","package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.26.0-alpha.3"}],"ecosystem":"Go","package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"go"},{"ranges":[{"status":"affected","lastAffected":"1.25.0"},{"status":"affected","version":"1.26.0"},{"status":"affected","version":"1.26.0"},{"status":"affected","version":"1.26.0"}],"vendor":"kubernetes","product":"kubernetes","cpe":"cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/kubernetes/kubernetes/issues/101695","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20220217-0003/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25743","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/kubernetes/kubernetes/pull/112553","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/kubernetes/kubernetes/commit/dad0e937c0f76344363eb691b2668490ffef8537","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/kubernetes/kubernetes","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20220217-0003","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-f9jg-8p32-2f55","tags":["advisory"],"sources":["go"]}],"credits":["Eviatar Gerzi"],"assigner":"kubernetes","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25743","url":"https://www.cve.org/CVERecord?id=CVE-2021-25743","licence":"CVE Terms of Use","modified":"2024-09-16T23:51:24.348Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f9jg-8p32-2f55","url":"https://github.com/advisories/GHSA-f9jg-8p32-2f55","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:10.759Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0983","url":"https://pkg.go.dev/vuln/GO-2022-0983","licence":"CC-BY-4.0","modified":"2026-02-04T04:32:39.998Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25743","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25743","licence":"Public domain","modified":"2026-06-17T03:42:23.367Z"}],"updatedAt":"2026-11-25T22:58:06.423Z","epss":{"score":0.00844,"percentile":0.59081,"date":"2026-12-01T12:00:22.000Z"}}