Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/compose-spec/compose-go/v2
  4. ›
  5. CVE-2024-10846

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

January 21, 2025 (updated April 28, 2025)

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

References

  • github.com/advisories/GHSA-36gq-35j3-p9r9
  • github.com/compose-spec/compose-go
  • github.com/compose-spec/compose-go/pull/618
  • github.com/compose-spec/compose-go/pull/703
  • github.com/compose-spec/compose-go/security/advisories/GHSA-36gq-35j3-p9r9
  • github.com/docker/compose/commit/d239f0f3187a2ed5404c61f83bd5e995c81600ff
  • github.com/docker/compose/issues/12235
  • nvd.nist.gov/vuln/detail/CVE-2024-10846
  • security.netapp.com/advisory/ntap-20250425-0008

Code Behaviors & Features

Detect and mitigate CVE-2024-10846 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.1.0 before 2.4.1

Fixed versions

  • 2.4.1

Solution

Upgrade to version 2.4.1 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-400: Uncontrolled Resource Consumption

Source file

go/github.com/compose-spec/compose-go/v2/CVE-2024-10846.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:14 +0000.