CVE-2021-25743
JSON

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 packageVersionsReported by
Kubernetes Kubernetesfrom 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 moreCVE List, NVD
k8s.io/kubernetes (Go)before 1.26.0-alpha.3GitHub Advisory Database, Go Vulnerability Database

All scores

kubernetes3.0low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N
GitHub3.0low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N
NVD3.0low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N
NVD2.1low CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2021-25743 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-f9jg-8p32-2f55 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0983 changed 2026-02-04CC-BY-4.0
NVDCVE-2021-25743 changed 2026-06-17Public domain