{"answers":{"affected":"3 open source packages ship an affected version, including github.com/compose-spec/compose-go/v2.","exploited":"There is no known exploitation of CVE-2024-10846 in the wild and no public exploit code.","fix":"Upgrade github.com/compose-spec/compose-go/v2 to 2.4.1 or later.","what":"CVE-2024-10846 is a medium-severity denial of service vulnerability in compose-spec compose-go, published on 23 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-10846 and fix it if it is affected.\n\nWhat it is: CVE-2024-10846 is a medium-severity denial of service vulnerability in compose-spec compose-go, published on 23 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-10846 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/compose-spec/compose-go/v2 (Go): affected from 2.1.0; fixed in 2.4.1\n- github.com/compose-spec/compose-go/v2 (Go): affected from 2.1.0; fixed in 2.4.1\n- github.com/compose-spec/compose-go/v2 (Go): affected from 2.1.0; fixed in 2.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-10846/ (Markdown: https://insights.sbomify.com/CVE-2024-10846/index.md)","id":"CVE-2024-10846","markdown":"https://insights.sbomify.com/CVE-2024-10846/index.md","name":"CVE-2024-10846","record":{"aliases":["AZL-55947","GHSA-36gq-35j3-p9r9","GO-2025-3412","MINI-6m36-69wc-qj23"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go compose library","requires_auth":"low_privilege","summary":"An attacker can cause excessive memory and CPU consumption in the compose-go library by sending malicious YAML payloads with recursive loops.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Docker","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Excessive Platform Resource Consumption within a Loop when unmarshalling Compose file having recursive loop","id":"CVE-2024-10846","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Storely \u003c= 18 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2024-10847"},"packages":[{"ecosystem":"Go","fixed":["2.4.1"],"introduced":["2.1.0"],"last_affected":[],"package":"github.com/compose-spec/compose-go/v2","purl":null,"source":"GHSA-36gq-35j3-p9r9"},{"ecosystem":"Go","fixed":["2.4.1"],"introduced":["2.1.0"],"last_affected":[],"package":"github.com/compose-spec/compose-go/v2","purl":"pkg:golang/github.com/compose-spec/compose-go/v2","source":"GHSA-36gq-35j3-p9r9"},{"ecosystem":"Go","fixed":["2.4.1"],"introduced":["2.1.0"],"last_affected":[],"package":"github.com/compose-spec/compose-go/v2","purl":"pkg:golang/github.com/compose-spec/compose-go/v2","source":"GO-2025-3412"}],"prev":{"headline":"1000 Projects Bookstore Management System book_detail.php sql injection","id":"CVE-2024-10845"},"products":["compose-go"],"published":"2025-01-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-25","vendors":["compose-spec"]},"summary":"An attacker can cause excessive memory and CPU consumption in the compose-go library by sending malicious YAML payloads with recursive loops.","url":"https://insights.sbomify.com/CVE-2024-10846/"}