{"answers":{"affected":"3 open source packages ship an affected version, including k8s.io/kubernetes. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-25743 in the wild and no public exploit code.","fix":"Upgrade k8s.io/kubernetes to 1.26.0-alpha.3 or later.","what":"CVE-2021-25743 is a low-severity vulnerability in Kubernetes Kubernetes, published on 7 Jan 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-25743 and fix it if it is affected.\n\nWhat it is: CVE-2021-25743 is a low-severity vulnerability in Kubernetes Kubernetes, published on 7 Jan 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-25743 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.26.0-alpha.3\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.26.0-alpha.3\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.26.0-alpha.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-25743/ (Markdown: https://insights.sbomify.com/CVE-2021-25743/index.md)","id":"CVE-2021-25743","markdown":"https://insights.sbomify.com/CVE-2021-25743/index.md","name":"CVE-2021-25743","record":{"aliases":["DEBIAN-CVE-2021-25743","GHSA-f9jg-8p32-2f55","GO-2022-0983","OESA-2022-2132","OESA-2023-1020","SUSE-SU-2024:2858-1","SUSE-SU-2024:2859-1","SUSE-SU-2024:2928-1"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes CLI tool","requires_auth":"low_privilege","summary":"kubectl fails to filter ANSI escape sequences, allowing attackers to manipulate terminal output and potentially hide malicious activity.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[{"product":"kubernetes","vendor":"kubernetes"}],"cvss":{"score":3,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"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.","ecosystems":["Go","SUSE:Linux Enterprise Module for Containers 15 SP5","SUSE:Linux Enterprise Module for Containers 15 SP6","openSUSE:Leap 15.5","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"ANSI escape characters in kubectl output are not being filtered","id":"CVE-2021-25743","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"kubernetes:kubernetes","products":["kubernetes:kubernetes"],"type":"other","year":"2021"},"n_packages":13,"n_references":2,"next":{"headline":"Ingress-nginx path can be pointed to service account token file","id":"CVE-2021-25745"},"packages":[{"ecosystem":"Go","fixed":["1.26.0-alpha.3"],"introduced":["0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":null,"source":"GHSA-f9jg-8p32-2f55"},{"ecosystem":"Go","fixed":["1.26.0-alpha.3"],"introduced":["0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GHSA-f9jg-8p32-2f55"},{"ecosystem":"Go","fixed":["1.26.0-alpha.3"],"introduced":["0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GO-2022-0983"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP5","fixed":["1.23.17-150500.3.15.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.23","purl":"pkg:rpm/suse/kubernetes1.23\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP5","source":"SUSE-SU-2024:2858-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP5","fixed":["1.24.17-150500.3.19.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.24","purl":"pkg:rpm/suse/kubernetes1.24\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP5","source":"SUSE-SU-2024:2859-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP5","fixed":["1.25.16-150400.9.10.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.25","purl":"pkg:rpm/suse/kubernetes1.25\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP5","source":"SUSE-SU-2024:2928-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP6","fixed":["1.25.16-150400.9.10.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.25","purl":"pkg:rpm/suse/kubernetes1.25\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP6","source":"SUSE-SU-2024:2928-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["1.23.17-150500.3.15.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.23","purl":"pkg:rpm/opensuse/kubernetes1.23\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:2858-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["1.24.17-150500.3.19.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.24","purl":"pkg:rpm/opensuse/kubernetes1.24\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:2859-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["1.25.16-150400.9.10.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.25","purl":"pkg:rpm/opensuse/kubernetes1.25\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:2928-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.23.17-150500.3.15.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.23","purl":"pkg:rpm/opensuse/kubernetes1.23\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:2858-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.24.17-150500.3.19.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.24","purl":"pkg:rpm/opensuse/kubernetes1.24\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:2859-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.25.16-150400.9.10.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes1.25","purl":"pkg:rpm/opensuse/kubernetes1.25\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:2928-1"}],"prev":{"headline":"Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces","id":"CVE-2021-25742"},"products":["Kubernetes"],"published":"2022-01-07","related":[{"cvss_score":9.8,"headline":"Privilege Escalation in Kubernetes","id":"CVE-2018-1002105","kev_date_added":null,"published":"2018-12-05"},{"cvss_score":9.8,"headline":"Kubernetes Privilege Escalation","id":"CVE-2017-1000056","kev_date_added":null,"published":"2017-07-13"},{"cvss_score":9.8,"headline":"Authorization bypass in Openshift","id":"CVE-2016-1906","kev_date_added":null,"published":"2016-02-03"},{"cvss_score":8.8,"headline":"Kubernetes - Windows nodes - Insufficient input sanitization leads to privilege escalation","id":"CVE-2023-3676","kev_date_added":null,"published":"2023-10-31"},{"cvss_score":8.8,"headline":"Kubernetes - Windows nodes - Insufficient input sanitization leads to privilege escalation","id":"CVE-2023-3955","kev_date_added":null,"published":"2023-10-31"},{"cvss_score":8.8,"headline":"Symlink Exchange Can Allow Host Filesystem Access","id":"CVE-2021-25741","kev_date_added":null,"published":"2021-09-20"},{"cvss_score":8.8,"headline":"Path traversal in Kubernetes","id":"CVE-2017-1002101","kev_date_added":null,"published":"2018-03-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Kubernetes"]},"summary":"kubectl fails to filter ANSI escape sequences, allowing attackers to manipulate terminal output and potentially hide malicious activity.","url":"https://insights.sbomify.com/CVE-2021-25743/"}