{"answers":{"affected":"14 open source packages ship an affected version, including io.fabric8:kubernetes-client. It affects 9 products.","exploited":"There is no known exploitation of CVE-2021-4178 in the wild and no public exploit code.","fix":"Upgrade io.fabric8:kubernetes-client to a fixed version for your release line: 5.0.3, 5.1.2, 5.11.2 or 5.3.2.","what":"CVE-2021-4178 is a medium-severity unsafe deserialization vulnerability in kubernetes-client, published on 24 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-4178 and fix it if it is affected.\n\nWhat it is: CVE-2021-4178 is a medium-severity unsafe deserialization vulnerability in kubernetes-client, published on 24 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-4178 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- io.fabric8:kubernetes-client (Maven): affected from 5.0.0-beta-1; fixed in 5.0.3\n- io.fabric8:kubernetes-client (Maven): affected from 5.0.0-beta-1; fixed in 5.0.3\n- io.fabric8:kubernetes-client (Maven): affected from 5.1.0; fixed in 5.1.2\n- io.fabric8:kubernetes-client (Maven): affected from 5.1.0; fixed in 5.1.2\n- io.fabric8:kubernetes-client (Maven): affected from 5.11.0; fixed in 5.11.2\n- io.fabric8:kubernetes-client (Maven): affected from 5.11.0; fixed in 5.11.2\n- io.fabric8:kubernetes-client (Maven): affected from 5.2.0; fixed in 5.3.2\n- io.fabric8:kubernetes-client (Maven): affected from 5.2.0; fixed in 5.3.2\n- io.fabric8:kubernetes-client (Maven): affected from 5.5.0; fixed in 5.7.4\n- io.fabric8:kubernetes-client (Maven): affected from 5.5.0; fixed in 5.7.4\n- io.fabric8:kubernetes-client (Maven): affected from 5.8.0; fixed in 5.8.1\n- io.fabric8:kubernetes-client (Maven): affected from 5.8.0; fixed in 5.8.1\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-4178/ (Markdown: https://insights.sbomify.com/CVE-2021-4178/index.md)","id":"CVE-2021-4178","markdown":"https://insights.sbomify.com/CVE-2021-4178/index.md","name":"CVE-2021-4178","record":{"aliases":["GHSA-98g7-rxmf-rrxm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kubernetes client library","requires_auth":"high_privilege","summary":"A local privileged attacker can execute arbitrary code by supplying malicious YAML to the Fabric 8 Kubernetes client due to improper parsing configuration.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"a-mq_streams","vendor":"redhat"},{"product":"build_of_quarkus","vendor":"redhat"},{"product":"descision_manager","vendor":"redhat"},{"product":"fabric8-kubernetes","vendor":"redhat"},{"product":"fuse","vendor":"redhat"},{"product":"integration_camel_k","vendor":"redhat"},{"product":"integration_camel_quarkus","vendor":"redhat"},{"product":"openshift_application_runtimes","vendor":"redhat"},{"product":"process_automation","vendor":"redhat"}],"cvss":{"score":6.7,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"A arbitrary code execution flaw was found in the Fabric 8 Kubernetes client affecting versions 5.0.0-beta-1 and above. Due to an improperly configured YAML parsing, this will allow a local and privileged attacker to supply malicious YAML.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-17T09:20:25Z","kind":"github_poc","ref":"https://github.com/shoucheng3/fabric8io__kubernetes-client_CVE-2021-4178_5-0-2","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"fabric8 kubernetes-client vulnerable","id":"CVE-2021-4178","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2021"},"n_packages":14,"n_references":4,"next":{"headline":"Cross-site Scripting (XSS) - Stored in livehelperchat/livehelperchat","id":"CVE-2021-4179"},"packages":[{"ecosystem":"Maven","fixed":["5.0.3"],"introduced":["5.0.0-beta-1"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":null,"source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.0.3"],"introduced":["5.0.0-beta-1"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.1.2"],"introduced":["5.1.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":null,"source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.1.2"],"introduced":["5.1.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.11.2"],"introduced":["5.11.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":null,"source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.11.2"],"introduced":["5.11.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.3.2"],"introduced":["5.2.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":null,"source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.3.2"],"introduced":["5.2.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.7.4"],"introduced":["5.5.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":null,"source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.7.4"],"introduced":["5.5.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.8.1"],"introduced":["5.8.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":null,"source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.8.1"],"introduced":["5.8.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.10.2"],"introduced":["5.9.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":null,"source":"GHSA-98g7-rxmf-rrxm"},{"ecosystem":"Maven","fixed":["5.10.2"],"introduced":["5.9.0"],"last_affected":[],"package":"io.fabric8:kubernetes-client","purl":"pkg:maven/io.fabric8/kubernetes-client","source":"GHSA-98g7-rxmf-rrxm"}],"prev":{"headline":"Generation of Error Message Containing Sensitive Information in livehelperchat/livehelperchat","id":"CVE-2021-4177"},"products":["kubernetes-client"],"published":"2022-08-24","related":[{"cvss_score":4.7,"headline":"Red hat a-mq streams: component version with information disclosure flaw","id":"CVE-2023-0833","kev_date_added":null,"published":"2023-09-27"}],"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":"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"A local privileged attacker can execute arbitrary code by supplying malicious YAML to the Fabric 8 Kubernetes client due to improper parsing configuration.","url":"https://insights.sbomify.com/CVE-2021-4178/"}