Vulnerability · Published Jan 23, 2025 · Assigned by Docker

CVE-2024-10846Excessive Platform Resource Consumption within a Loop when unmarshalling Compose file having recursive loop

Medium 5.9

In plain English

A medium-severity improper input validation in compose-go from compose-spec. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.2%top 86.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The compose-go library component in versions v2.10-v2.4.0 allows an authorized user who sends malicious YAML payloads to cause the compose-go to consume excessive amount of Memory and CPU cycles while parsing YAML, such as used by Docker Compose from versions v2.27.0 to v2.29.7 included

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/compose-spec/compose-go/v22.4.1GHSA-36gq-35j3-p9r9
Gogithub.com/compose-spec/compose-go/v22.4.1GO-2025-3412

Affected products (as reported)

VendorProductVersions
compose-spec compose-go 0 – through 2.4.0

Weakness: CWE-20 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:H

References