Intel

AIKIDO-2024-10486

github.com/goccy/go-yaml is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

25

Low Risk

This Affects:

GOgithub.com/goccy/go-yaml
1.0.0 - 1.15.1
Fixed in 1.15.2

TL;DR

Affected versions of this package fail to guard against overflow when decoding YAML files. This allows attackers to craft malicious YAML files with excessively deep nesting, leading to resource exhaustion. As the system attempts to parse the deeply nested structure, it can experience significant slowdowns, high CPU usage, and memory exhaustion, ultimately resulting in a Denial of Service (DoS).

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/goccy/go-yaml is vulnerable to Denial of Service (DoS) in versions 1.0.0 - 1.15.1.

How to fix this

Upgrade the github.com/goccy/go-yaml library to the patch version.