CVE-2021-4235: Denial of service in gopkg.in/yaml.v2

Published Dec 27, 2022
·
Updated

A flaw was found in go-yaml. This issue occurs due to unbounded alias chasing, where 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.

Other sources

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.

Ubuntu

Affected Software

10 affected componentsFixes available
redhat/openshift-clients<0:4.12.0-202301042257.p0.g854f807.assembly.stream.el9
0:4.12.0-202301042257.p0.g854f807.assembly.stream.el9
ubuntu/golang-yaml.v2<0.0+
0.0+
ubuntu/golang-yaml.v2<2.2.2-1ubuntu0.1
2.2.2-1ubuntu0.1
ubuntu/golang-yaml.v2<2.2.3
2.2.3
ubuntu/golang-yaml.v2<0.0+
0.0+
debian/golang-yaml.v2<=2.2.2-1
2.2.2-1+deb10u12.4.0-12.4.0-4
redhat/go-yaml<2.2.3
2.2.3
Yaml Project Yaml Go<2.2.3
go/github.com/go-yaml/yaml<=2.1.0
go/gopkg.in/yaml.v2<2.2.3
2.2.3

Event History

Dec 27, 2022
CVE Published
12:00 AM
CVE Published
via MITRE·09:13 PM
Data Sourced
via MITRE·09:13 PM
DescriptionWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityAffected Software
Dec 28, 2022
Advisory Published
via GitHub·12:30 AM
Data Sourced
via GitHub·12:30 AM
DescriptionSeverityAffected Software
Data Sourced
via Red Hat·11:14 AM
DescriptionSeverityAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:01 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-4235?

CVE-2021-4235 is a vulnerability caused by unbounded alias chasing in go-yaml, allowing a maliciously crafted YAML file to consume significant system resources and potentially be used as a denial of service vector.

2

How does CVE-2021-4235 impact the system?

CVE-2021-4235 can lead to excessive consumption of system resources when parsing user input, potentially causing a denial of service.

3

What software versions are affected by CVE-2021-4235?

The affected software versions include golang-yaml.v2 0.0+ (Ubuntu Bionic), golang-yaml.v2 2.2.2-1ubuntu0.1 (Ubuntu Focal), golang-yaml.v2 2.2.3 (Ubuntu upstream), golang-yaml.v2 0.0+ (Ubuntu Xenial), golang-yaml.v2 2.2.2-1+deb10u1, 2.4.0-1, 2.4.0-4 (Debian), go-yaml 2.2.3 (Red Hat), and openshift-clients 0:4.12.0-202301042257.p0.g854f807.assembly.stream.el9 (Red Hat).

4

What is the severity of CVE-2021-4235?

CVE-2021-4235 has a severity level of medium with a CVSS score of 5.5.

5

How can CVE-2021-4235 be fixed?

To fix CVE-2021-4235, it is recommended to update the affected software to the latest secure version provided by the respective vendors.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203