CVE-2021-25743 json
ANSI escape characters in kubectl output are not being filtered
published 2022-01-07 4 y ago modified 2026-09-10 1 mo ago also GHSA-f9jg-8p32-2f55 , GO-2022-0983 , EUVD-2022-0579
- cvss
- 3.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
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.
Patch / fix
- go k8s.io/kubernetes 1.26.0-alpha.3
- kubernetes Debian 12 1.20.5+really1.20.2-1.1
- kubernetes Debian 14, Debian 13 1.31.4+ds-1
debian advisories DEBIAN-CVE-2021-25743
- kubernetes1.23 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +5 more 1.23.17-150300.7.12.1
- kubernetes1.24 SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 1.24.17-150300.7.6.1
- kubernetes1.24 SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 1.24.17-150400.9.16.1
- kubernetes1.25 SLE Module for Containers 15 SP6, SLE Module for Containers 15 SP5, openSUSE Leap 15.6 +1 more 1.25.16-150400.9.10.1
- kubernetes1.24 SLE Module for Containers 15 SP5, openSUSE Leap 15.6, openSUSE Leap 15.5 1.24.17-150500.3.19.1
- kubernetes1.23 SLE Module for Containers 15 SP5, openSUSE Leap 15.6, openSUSE Leap 15.5 1.23.17-150500.3.15.1
suse advisories SUSE-SU-2025:02423-2SUSE-SU-2024:3343-1SUSE-SU-2024:3341-1SUSE-SU-2024:2928-1SUSE-SU-2024:2859-1SUSE-SU-2024:2858-1
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250807T150727-1.1
opensuse advisories openSUSE-SU-2025:15424-1
- github.com/kubernetes/kubernetes@dad0e93 commit
- github.com/kubernetes/kubernetes#112553 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-25743 updated cvss 3.0
kubernetes: kubectl does not neutralize escape, meta or control sequences contained in the raw data it outputs to a terminal
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/agent-service-rhel8affected: no fix available “Fix deferred”
-
Red Hat Ansible Automation Platform 1.2 kubernetes Red Hat Ansible Tower 3 kubernetesaffected: no fix available
-
Red Hat OpenShift Container Platform 3.11 atomic-openshift, atomic-openshift-pod, atomic-openshift-node, atomic-openshift-tests, atomic-openshift-master, atomic-openshift-clients, +7 more Red Hat OpenShift Container Platform 4 openshift, openshift-clients, openshift-kubelet, openshift-hyperkube, openshift-kube-apiserver, openshift-kube-scheduler, +2 moreaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.84% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N |
| NVD | 3.1 | 3.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N |
| NVD | 2.0 | 2.1 | AV:N/AC:H/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 3.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | k8s.io/kubernetes | <1.26.0-alpha.3 |
1.26.0-alpha.3 |
Affected products
- Kubernetes Kubernetes
Classification
- Weakness
-
- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
- Technology feeds
References
-
github.com
/kubernetes/kubernetes/pull/112553
web
-
github.com
/kubernetes/kubernetes/commit/dad0e937c0f76344363eb691b2668490ffef8537
web
-
github.com
/kubernetes/kubernetes/issues/101695
web, vendor-advisory
-
security.netapp.com
/advisory/ntap-20220217-0003/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-25743
advisory
-
github.com
/kubernetes/kubernetes
package
-
security.netapp.com
/advisory/ntap-20220217-0003
web
-
github.com
/advisories/GHSA-f9jg-8p32-2f55
advisory
Sources
- CVE List CVE-2021-25743
- GitHub Advisory GHSA-f9jg-8p32-2f55
- NVD CVE-2021-25743
- OSV GO-2022-0983
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.