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

- Severity: Low 3.0 (CVSS:3.1, scored by kubernetes) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 59% of CVEs (2026-12-01)
- Published: 2022-01-07T00:00:12.399Z
- Modified: 2026-09-10T03:49:10.759Z
- Also known as: GHSA-f9jg-8p32-2f55, GO-2022-0983
- Related: CGA-g2xf-r675-cc5v
- Weaknesses: CWE-150
- Assigned by: kubernetes

## 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.

(As written by CVE List.)

## Affected

- Kubernetes Kubernetes: from unspecified up to 1.23.1; from next of 1.23.1 before unspecified; from unspecified up to 1.22.5; from next of 1.22.5 before unspecified; from unspecified up to 1.21.8; from next of 1.21.8 before unspecified; from unspecified up to 1.20.14; from next of 1.20.14 before unspecified; up to 1.25.0; 1.26.0
- k8s.io/kubernetes (Go): before 1.26.0-alpha.3

## Every score

- kubernetes: CVSS:3.1 3.0 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.0 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 3.0 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:N/AC:H/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/kubernetes/kubernetes/issues/101695> (vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220217-0003/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25743> (advisory)
- <https://github.com/kubernetes/kubernetes/pull/112553> (web)
- <https://github.com/kubernetes/kubernetes/commit/dad0e937c0f76344363eb691b2668490ffef8537> (web)
- <https://github.com/kubernetes/kubernetes> (package)
- <https://security.netapp.com/advisory/ntap-20220217-0003> (web)
- <https://github.com/advisories/GHSA-f9jg-8p32-2f55> (advisory)

## Sources

- CVE List: [CVE-2021-25743](https://www.cve.org/CVERecord?id=CVE-2021-25743), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-f9jg-8p32-2f55](https://github.com/advisories/GHSA-f9jg-8p32-2f55), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0983](https://pkg.go.dev/vuln/GO-2022-0983), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2021-25743](https://nvd.nist.gov/vuln/detail/CVE-2021-25743), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25743 · Whole record: https://cve.day/CVE-2021-25743.json · Rebuilt by cve.day 2026-11-25T22:58:06.423Z
