3.0low
ANSI escape characters in kubectl output are not being filtered
- Severity
- 3.0low CVSS:3.1 by kubernetes
- Exploit likelihood
- 0.84% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- kubernetes
- Also known as
- GHSA-f9jg-8p32-2f55GO-2022-0983
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 2 more | CVE List, NVD |
| k8s.io/kubernetes (Go) | before 1.26.0-alpha.3 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| kubernetes | 3.0low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N |
| GitHub | 3.0low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N |
| NVD | 3.0low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N |
| NVD | 2.1low CVSS:2.0 | AV:N/AC:H/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
Go Vulnerability Database
ANSI escape characters not filtered in kubectl in k8s.io/kubernetes
NVD (es)
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
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25743 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f9jg-8p32-2f55 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0983 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2021-25743 changed 2026-06-17 | Public domain |