Excessive Platform Resource Consumption within a Loop Affecting github.com/compose-spec/compose-go/loader package, versions <2.4.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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-GOLANG-GITHUBCOMCOMPOSESPECCOMPOSEGOLOADER-8660849
  • published24 Jan 2025
  • disclosed23 Jan 2025
  • creditahollmann

Introduced: 23 Jan 2025

NewCVE-2024-10846  (opens in a new tab)
CWE-1050  (opens in a new tab)

How to fix?

Upgrade github.com/compose-spec/compose-go/loader to version 2.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Excessive Platform Resource Consumption within a Loop via the parsing of malicious YAML payloads. An attacker can cause the system to consume excessive memory and CPU resources by sending specially crafted YAML files.

CVSS Scores

version 4.0
version 3.1