github.com/compose-spec/compose-go/v2
Affected
- introduced
2.1.0, fixed2.4.1(semver)
Fixed versions
2.4.1
Fix
- Fixed version
2.4.1go get github.com/compose-spec/compose-go/[email protected]
Advisory
Also known as: CVE-2024-10846, GO-2025-3412
Excessive Platform Resource Consumption within a Loop when unmarshalling Compose file having recursive loop
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
Medium Basis: The source's own band: MODERATE
2.1.0, fixed 2.4.1 (semver)2.4.1
2.4.1go get github.com/compose-spec/compose-go/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0