CVE-2021-25743: ANSI escape characters in kubectl output are not being filtered
Noroxi assessment
Priority: Monitor (action score 12/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.84% (FIRST EPSS); higher than 58.5% of all records.
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. A user must open a link or visit a page. Special conditions such as timing or configuration are required.
- Fixed version: kubernetes (Debian:12) 1.20.5+really1.20.2-1.1; kubernetes (Debian:13) 1.31.4+ds-1; k8s.io/kubernetes (Go) 1.26.0-alpha.3.
Low priority for now. Upgrade to kubernetes (Debian:12) 1.20.5+really1.20.2-1.1; kubernetes (Debian:13) 1.31.4+ds-1; k8s.io/kubernetes (Go) 1.26.0-alpha.3 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jan 6, 2022
- Updated
- Jun 16, 2026
- EPSS
- 0.8% · 58th percentile
- CWE
- CWE-150
Report tools
Action score
12
Low priority for now.
- CVSS
- 12 / 40 · 3.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.8%
CNA vs NVD score
- NVD
- 3.0
- CNA · kubernetes
- 3.0
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| kubernetes | kubernetes | cpe:2.3:a:kubernetes:kubernetes |
Using kubernetes? Add it to your stack and be the first to know about CVEs like this one. (Kubernetes)
Versions reported by the vendor
Affected version ranges reported by the assigning authority (kubernetes). Independent of NVD's CPE analysis and usually ahead of it.
Kubernetes Kubernetes
- unspecified and later · up to and including 1.23.1affected
- next of 1.23.1 and later · before unspecifiedunknown
- unspecified and later · up to and including 1.22.5affected
- next of 1.22.5 and later · before unspecifiedunknown
- unspecified and later · up to and including 1.21.8affected
- next of 1.21.8 and later · before unspecifiedunknown
- unspecified and later · up to and including 1.20.14affected
- next of 1.20.14 and later · before unspecifiedunknown
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- kubernetes kubernetesup to 1.25.0 inclusive
- kubernetes kubernetes1.26.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | kubernetes | before 1.20.5+really1.20.2-1.1 | 1.20.5+really1.20.2-1.1 |
| Debian:13 | kubernetes | before 1.31.4+ds-1 | 1.31.4+ds-1 |
| Go | k8s.io/kubernetes | before 1.26.0-alpha.3 | 1.26.0-alpha.3 |
| openSUSE:Leap 15.5 | kubernetes1.23 | before 1.23.17-150500.3.15.1 | 1.23.17-150500.3.15.1 |
| openSUSE:Leap 15.5 | kubernetes1.24 | before 1.24.17-150500.3.19.1 | 1.24.17-150500.3.19.1 |
| openSUSE:Leap 15.5 | kubernetes1.25 | before 1.25.16-150400.9.10.1 | 1.25.16-150400.9.10.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kubernetes1.23 | before 1.23.17-150300.7.12.1 | 1.23.17-150300.7.12.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kubernetes1.24 | before 1.24.17-150300.7.6.1 | 1.24.17-150300.7.6.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kubernetes1.24 | before 1.24.17-150400.9.16.1 | 1.24.17-150400.9.16.1 |
| SUSE:Linux Enterprise Module for Containers 15 SP5 | kubernetes1.23 | before 1.23.17-150500.3.15.1 | 1.23.17-150500.3.15.1 |
| SUSE:Linux Enterprise Module for Containers 15 SP5 | kubernetes1.24 | before 1.24.17-150500.3.19.1 | 1.24.17-150500.3.19.1 |
| SUSE:Linux Enterprise Module for Containers 15 SP5 | kubernetes1.25 | before 1.25.16-150400.9.10.1 | 1.25.16-150400.9.10.1 |
Same product
kubernetes: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-1002105In all Kubernetes versions prior to v1.10.11, v1.11.5, and v1.12.3, incorrect handling of error responses to proxied upgrade requests in…65This week
- CVE-2019-11248Kubernetes kubelet exposes /debug/pprof info on healthz port55Plan
- CVE-2017-1002101In Kubernetes versions 1.3.x, 1.4.x, 1.5.x, 1.6.x and prior to versions 1.7.14, 1.8.9 and 1.9.4 containers using subpath volume mounts with…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2021-25740Sep 20, 2021 · Holes in EndpointSlice Validation Enable Host Network Hijack13Monitor
- ← EarlierCVE-2021-25741Sep 20, 2021 · Symlink Exchange Can Allow Host Filesystem Access34Monitor
- Later →CVE-2020-8562Feb 1, 2022 · Bypass of Kubernetes API Server proxy TOCTOU12Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:kubernetes | 1.20.5+really1.20.2-1.1 · Debian:12 | Package registry (OSV) |
| Go:k8s.io/kubernetes | 1.26.0-alpha.3 | Package registry (OSV) |
| opensuse:kubernetes1.23 | 1.23.17-150500.3.15.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:kubernetes1.24 | 1.24.17-150500.3.19.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:kubernetes1.25 | 1.25.16-150400.9.10.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| suse:kubernetes1.23 | 1.23.17-150500.3.15.1 · SUSE:Linux Enterprise Module for Containers 15 SP5 | Package registry (OSV) |
| suse:kubernetes1.24 | 1.24.17-150500.3.19.1 · SUSE:Linux Enterprise Module for Containers 15 SP5 | Package registry (OSV) |
| suse:kubernetes1.25 | 1.25.16-150400.9.10.1 · SUSE:Linux Enterprise Module for Containers 15 SP5 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Not on record for this CVE: EPSS history · patch commit or PR link · variant or chain candidate.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- A user must open a link or visit a page.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- none
- Integrity
- low · data or configuration can be modified
- Availability
- none
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality impact
- None
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-150 · Improper Neutralization of Escape, Meta, or Control SequencesCVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (1 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.