Intel

AIKIDO-2024-10486

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

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 28, 2024
November 28, 2024

25

CVE Score

Low

Denial of Service (DoS)

Are you affected? Scan for Free

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

How do I fix this?

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

Who does this affect?

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

Versions

1.0.0 - 1.15.1

Fixed in 1.15.2

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea