CVE-2021-4235 Affecting golang-yaml.v2 package, versions <0.0+git20170407.0.cd8b52f-1ubuntu2+esm1


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.43% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-GOLANGYAMLV2-3187946
  • published1 Jun 2025
  • disclosed27 Dec 2022

Introduced: 27 Dec 2022

CVE-2021-4235  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 golang-yaml.v2 to version 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-yaml.v2 package and not the golang-yaml.v2 package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1