Vulnerability · Published Jan 7, 2022 · Assigned by kubernetes

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

Low 3.0

In plain English

A low-severity security flaw in Kubernetes from Kubernetes. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.0Low
Exploit odds (30 days)0.8%top 41.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12kubernetes1.20.5+really1.20.2-1.1DEBIAN-CVE-2021-25743
Debian:13kubernetes1.31.4+ds-1DEBIAN-CVE-2021-25743
Debian:14kubernetes1.31.4+ds-1DEBIAN-CVE-2021-25743
Gok8s.io/kubernetes1.26.0-alpha.3GHSA-f9jg-8p32-2f55
Gok8s.io/kubernetes1.26.0-alpha.3GO-2022-0983
Ubuntu:22.04:LTSkubernetesno fix listedUBUNTU-CVE-2021-25743
Ubuntu:24.04:LTSkubernetesno fix listedUBUNTU-CVE-2021-25743

Affected products (as reported)

VendorProductVersions
Kubernetes Kubernetes unspecified – through 1.23.1unspecified – through 1.22.5unspecified – through 1.21.8unspecified – through 1.20.14

Weakness: CWE-150 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N

References