CVE-2024-10846
JSON

5.9medium

Excessive Platform Resource Consumption within a Loop when unmarshalling Compose file having recursive loop

Severity
5.9medium CVSS:3.1 by Docker
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Docker
Also known as
GHSA-36gq-35j3-p9r9GO-2025-3412

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

Product or packageVersionsReported by
compose-goup to 2.4.0CVE List
github.com/compose-spec/compose-go/v2 (Go)from 2.1.0 before 2.4.1GitHub Advisory Database, Go Vulnerability Database

All scores

Docker5.9medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:H
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:H

Classification

CWE-20CWE-400

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

GitHub Advisory Database
Impact

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

Patches

compose-go v2.24.1 fixed the issue

Workarounds

There isn't any known workaround.

References
Go Vulnerability Database

Excessive resource consumption when unmarshalling Compose file with recursive loop in github.com/compose-spec/compose-go/v2

NVD (es)

El componente compose-go library en las versiones v2.10-v2.4.0 permite que un usuario autorizado que envíe YAML payloads maliciosos haga que compose-go consuma una cantidad excesiva de memoria y ciclos de CPU mientras analiza YAML, como lo usa Docker Compose desde las versiones v2.27.0 a v2.29.7 incluidas.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-10846 changed 2025-04-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-36gq-35j3-p9r9 changed 2025-04-28CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3412 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-10846 changed 2026-06-17Public domain