cve.bz

CVE-2021-4235 yaml project yaml

5.5 mediumExploit referenceEPSS 0.4%Fix available

Medium (5.5) in yaml project yaml. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in gopkg.in/yaml.v2 2.2.3.

On this page
Due to unbounded alias chasing, a maliciously crafted YAML file can cause the system to consume significant system resources. If parsing user input, this may be used as a denial of service vector.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 38th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
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-4235 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4235?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4235?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-4235 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 CNA's record in the CVE List.

ProductAffected
gopkg.in/yaml.v2before 2.2.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r88r-gmrh-7j83Gogopkg.in/yaml.v2<2.2.32.2.3
GHSA-r88r-gmrh-7j83Gogithub.com/go-yaml/yaml<=2.1.0no fix published
GO-2021-0061Gogopkg.in/yaml.v2<2.2.32.2.3
GO-2021-0061Gogithub.com/go-yaml/yamlall versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10golang-yaml.v22.2.2-1+deb10u1DLA-3479-1
Debian12, 13, 14golang-yaml.v22.2.8-1DEBIAN-CVE-2021-4235
Ubuntu18.04:LTSwebhookno fix listedUBUNTU-CVE-2021-4235
Ubuntu20.04:LTSgolang-yaml.v22.2.2-1ubuntu0.1UBUNTU-CVE-2021-4235 USN-6287-1
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 1 morewebhook, golang-github-coreos-discovery-etcd-iono fix listedUBUNTU-CVE-2021-4235
Ubuntu25.10, 26.04:LTSwebhook, singularity-container, golang-github-coreos-discovery-etcd-iono fix listedUBUNTU-CVE-2021-4235
UbuntuPro:16.04:LTSgolang-yaml.v20.0+git20160301.0.a83829b-1ubuntu0.1~esm1UBUNTU-CVE-2021-4235 USN-6287-1
UbuntuPro:18.04:LTSgolang-yaml.v20.0+git20170407.0.cd8b52f-1ubuntu2+esm1UBUNTU-CVE-2021-4235 USN-6287-1
UbuntuPro:18.04:LTS, Pro:24.04:LTSsingularity-containerno fix listedUBUNTU-CVE-2021-4235
Red Hatopenshift:4.12::el8ansible-runner, python3-ansible-runner0:1.4.6-2.el8arRHSA-2022:7398
Red Hatopenshift:4.12::el8ansible-runner-http0:1.0.0-2.el8arRHSA-2022:7398
Red Hatopenshift:4.12::el8bootupd, rust-bootupd, bootupd-debuginfo and 1 more0:0.2.5-3.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8butane, butane-debuginfo, butane-debugsource and 1 more0:0.16.0-2.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8conmon-rs0:0.4.0-2.rhaos4.12.git.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8console-login-helper-messages, console-login-helper-messages-profile, console-login-helper-messages-issuegen0:0.20.4-1.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8containernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource0:1.0.1-5.rhaos4.11.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8coreos-installer, coreos-installer-bootinfra, coreos-installer-debuginfo and 2 more0:0.16.1-1.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.25.1-5.rhaos4.12.git6005903.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8cri-tools, cri-tools-debuginfo, cri-tools-debugsource0:1.25.0-2.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8crit, criu, criu-libs and 5 more0:3.15-4.rhaos4.11.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8crudini0:0.9-11.el8ost.1RHSA-2022:7398
188 more for Red Hat in the JSON and on Red Hat's page.
Azure Linux2buildahno fix listedAZL-43918
Azure Linux2delveno fix listedAZL-43447
Azure Linux2podmanno fix listedAZL-43642
Azure Linux3buildah1.41.4-2AZL-45360
Azure Linux3delveno fix listedAZL-44229
Azure Linux3podman5.6.1-2AZL-45237

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.12openshift-clients-0:4.12.0-202301042257.p0.g854f807.assembly.stream.el8Fixed 2023-01-17RHSA-2022:7398
Red Hat OpenShift Container Platform 4.12openshift4/ose-installer:v4.12.0-202301271115.p0.g7fea1c4.assembly.streamFixed 2023-02-07RHSA-2023:0569
Red Hat OpenShift Container Platform 4.12openshift4/metallb-rhel8-operator:v4.12.0-202301301729.p0.g917cd33.assembly.streamFixed 2023-02-07RHSA-2023:0570
Red Hat OpenShift Container Platform 4.12openshift4/ose-openshift-controller-manager-rhel8:v4.12.0-202306090942.p0.gb6528f9.assembly.streamFixed 2023-06-24RHSA-2023:3615
Red Hat OpenShift Container Platform 4.13openshift4/ose-installer:v4.13.0-202305091542.p0.g44db7b2.assembly.streamFixed 2023-05-17RHSA-2023:1326
Red Hat OpenShift Container Platform 4.13openshift4/ose-machine-api-operator:v4.13.0-202304190216.p0.ga23baf7.assembly.streamFixed 2023-05-17RHSA-2023:1326
RHODF-4.13-RHEL-9odf4/mcg-rhel9-operator:v4.13.0-41Fixed 2023-06-21RHSA-2023:3742
RHODF-4.13-RHEL-9odf4/odf-rhel9-operator:v4.13.0-24Fixed 2023-06-21RHSA-2023:3742
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-rhel9Will not fix
Migration Toolkit for Containersrhmtc/openshift-migration-controller-rhel8Will not fix
Node Maintenance Operatorworkload-availability/node-maintenance-rhel8-operatorNot affected
OpenShift Developer Tools and ServiceshelmNot affected
OpenShift Developer Tools and ServicesodoAffected
OpenShift Pipelinesopenshift-pipelines-clientWill not fix
OpenShift Serverlessopenshift-serverless-1/client-kn-rhel8Will not fix
OpenShift Serverlessopenshift-serverless-1/kn-cli-artifacts-rhel8Will not fix
OpenShift Serverlessopenshift-serverless-clientsWill not fix
OpenShift Service Mesh 2openshift-service-mesh/istio-cni-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multiclusterhub-repo-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-channel-rhel8Not affected
58 more in the JSON and on Red Hat's page.

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-4235.

References

Check your stackJSON