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

Published Jan 7, 2022
·
Updated

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.

Other sources

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 Software

6 affected componentsFixes available
go/k8s.io/kubernetes<1.26.0-alpha.3
1.26.0-alpha.3
Kubernetes kubernetes<=1.18.0
Kubernetes kubernetes<=1.25.0
Kubernetes kubernetes=1.26.0-alpha0
Kubernetes kubernetes=1.26.0-alpha1
Kubernetes kubernetes=1.26.0-alpha2

Event History

Jan 7, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:15 AM
DescriptionSeverityWeaknessAffected Software
Jan 8, 2022
Advisory Published
12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-25743?

CVE-2021-25743 is a vulnerability in kubectl, where it does not neutralize escape, meta, or control sequences contained in the raw data it outputs to a terminal.

2

What is the severity of CVE-2021-25743?

CVE-2021-25743 has a severity level of low.

3

Which software versions are affected by CVE-2021-25743?

Versions up to and including 1.26.0-alpha.3 of k8s.io/kubernetes and versions up to and including 1.18.0 of Kubernetes are affected by CVE-2021-25743.

4

How can I fix CVE-2021-25743?

To fix CVE-2021-25743, update to version 1.26.0-alpha.3 of k8s.io/kubernetes or a later version, or update to a version of Kubernetes above 1.18.0.

5

Where can I find more information about CVE-2021-25743?

You can find more information about CVE-2021-25743 at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-25743), [GitHub](https://github.com/kubernetes/kubernetes/issues/101695), [NetApp Security Advisory](https://security.netapp.com/advisory/ntap-20220217-0003/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203