CVE Vulnerabilities

CVE-2021-4178

Deserialization of Untrusted Data

Published: Aug 24, 2022 | Modified: Nov 21, 2024
CVSS 3.x
6.7
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
6.7 MODERATE
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Ubuntu
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.

Affected Software

NameVendorStart VersionEnd Version
Fabric8-kubernetesRedhat5.0.1 (including)5.0.3 (excluding)
Fabric8-kubernetesRedhat5.1.0 (including)5.1.2 (excluding)
Fabric8-kubernetesRedhat5.2.0 (including)5.3.2 (excluding)
Fabric8-kubernetesRedhat5.5.0 (including)5.7.4 (excluding)
Fabric8-kubernetesRedhat5.9.0 (including)5.10.2 (excluding)
Fabric8-kubernetesRedhat5.11.0 (including)5.11.2 (excluding)
Fabric8-kubernetesRedhat5.0.0-beta1 (including)5.0.0-beta1 (including)
Fabric8-kubernetesRedhat5.8.0 (including)5.8.0 (including)
OCP-Tools-4.13-RHEL-8RedHatjenkins-2-plugins-0:4.13.1684911916-1.el8*
Red Hat AMQ Streams 1.6.7RedHat*
Red Hat AMQ Streams 2.0.1RedHatkubernetes-client*
Red Hat build of Quarkus 2.2.5RedHatkubernetes-client*
Red Hat Fuse 7.11RedHatkubernetes-client*
RHINT Camel-Q 2.2.1RedHat*
Text-Only RHOARRedHatkubernetes-client*

Potential Mitigations

  • Make fields transient to protect them from deserialization.
  • An attempt to serialize and then deserialize a class containing transient fields will result in NULLs where the transient data should be. This is an excellent way to prevent time, environment-based, or sensitive variables from being carried over and used improperly.

References