CVE-2021-4235
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-4235 is a vulnerability in the go-yaml library that was discovered and disclosed in December 2022. The vulnerability affects the YAML parsing functionality, where due to unbounded alias chasing, a maliciously crafted YAML file can cause the system to consume significant system resources. This vulnerability affects multiple versions of go-yaml.v2 before version 2.2.3 (Go Vuln DB).

Technical details

The vulnerability has a CVSS v3.1 Base Score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. The issue occurs when parsing YAML files containing excessive aliasing, where unbounded alias chasing can lead to exponential resource consumption. The vulnerability was addressed in version 2.2.3 by implementing checks for excessive aliasing and monitoring the percentage of aliases in the overall document (NVD).

Impact

When exploited, this vulnerability can lead to a denial of service condition by causing the system to consume excessive CPU and memory resources. This is particularly concerning when parsing user input, as it could be used as a denial of service vector against systems that process YAML files (Ubuntu Security).

Mitigation and workarounds

The primary mitigation is to upgrade to go-yaml.v2 version 2.2.3 or later, which includes the fix for this vulnerability. The fix implements internal handling that considers the percentage of aliases in the overall document and monitors the depth of alias chasing. Various Linux distributions have also released security updates, including Debian which fixed the issue in version 2.2.2-1+deb10u1 (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe/snipe-it
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management