cve.bz

CVE-2021-4178 redhat: Deserialization of Untrusted Data

6.7 mediumEPSS 0.3%Fix available

Medium (6.7) in redhat. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in io.fabric8:kubernetes-client 5.0.3, 5.1.2, 5.10.2.

On this page
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.

Severity

CVSS 3.1

6.7 medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 27th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4178 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4178?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4178?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4178 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:fabric8-kubernetesfrom 5.0.1 before 5.0.3
redhat:fabric8-kubernetesfrom 5.1.0 before 5.1.2
redhat:fabric8-kubernetesfrom 5.2.0 before 5.3.2
redhat:fabric8-kubernetesfrom 5.5.0 before 5.7.4
redhat:fabric8-kubernetesfrom 5.9.0 before 5.10.2
redhat:fabric8-kubernetesfrom 5.11.0 before 5.11.2
redhat:fabric8-kubernetes5.0.0:beta1
redhat:fabric8-kubernetes5.8.0
redhat:a-mq_streams2.0.1
redhat:build_of_quarkus2.2.5
redhat:descision_manager7.0
redhat:fuse7.11
redhat:integration_camel_quarkus2.2.1
redhat:process_automation7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-98g7-rxmf-rrxmMavenio.fabric8:kubernetes-client>=5.0.0-beta-1 <5.0.35.0.3
GHSA-98g7-rxmf-rrxmMavenio.fabric8:kubernetes-client>=5.1.0 <5.1.25.1.2
GHSA-98g7-rxmf-rrxmMavenio.fabric8:kubernetes-client>=5.2.0 <5.3.25.3.2
GHSA-98g7-rxmf-rrxmMavenio.fabric8:kubernetes-client>=5.5.0 <5.7.45.7.4
GHSA-98g7-rxmf-rrxmMavenio.fabric8:kubernetes-client>=5.8.0 <5.8.15.8.1
GHSA-98g7-rxmf-rrxmMavenio.fabric8:kubernetes-client>=5.9.0 <5.10.25.10.2
GHSA-98g7-rxmf-rrxmMavenio.fabric8:kubernetes-client>=5.11.0 <5.11.25.11.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatocp_tools:4.13::el8jenkins0:2.387.3.1684911776-3.el8RHSA-2023:3299
Red Hatocp_tools:4.13::el8jenkins-2-plugins0:4.13.1684911916-1.el8RHSA-2023:3299

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat CodeReady Studio 12 is not affected by this flaw because it does not ship a vulnerable version of kubernetes-client; the version that it ships does not use SnakeYAML.

ProductPackageStateAdvisory
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1684911916-1.el8Fixed 2023-05-24RHSA-2023:3299
Red Hat AMQ Streams 1.6.7Fixed 2022-02-08RHSA-2022:0467
Red Hat AMQ Streams 2.0.1kubernetes-clientFixed 2022-02-08RHSA-2022:0469
Red Hat build of Quarkus 2.2.5kubernetes-clientFixed 2022-02-21RHSA-2022:0589
Red Hat Fuse 7.11kubernetes-clientFixed 2022-07-07RHSA-2022:5532
RHINT Camel-Q 2.2.1Fixed 2022-03-22RHSA-2022:1013
Text-Only RHOARkubernetes-clientFixed 2022-12-14RHSA-2022:8761
Red Hat build of Quarkuskubernetes-clientAffected
Red Hat Decision Manager 7kubernetes-clientAffected
Red Hat Integration Camel K 1kubernetes-clientAffected
Red Hat Integration Camel Quarkus 1kubernetes-clientAffected
Red Hat JBoss Fuse 6kubernetes-clientNot affected
Red Hat OpenShift Container Platform 4jenkins-2-pluginsAffected
Red Hat Process Automation 7kubernetes-clientAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4178.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON