{"answers":{"affected":"2 open source packages ship an affected version, including golang and stdlib.","exploited":"There is no known exploitation of CVE-2024-34158 in the wild and no public exploit code.","fix":"Upgrade golang to a fixed version for your release line: 1.22.7 or 1.23.1.","what":"CVE-2024-34158 is a high-severity denial of service vulnerability in go/build/constraint, published on 6 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-34158 and fix it if it is affected.\n\nWhat it is: CVE-2024-34158 is a high-severity denial of service vulnerability in go/build/constraint, published on 6 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-34158 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang (Bitnami): affected all versions; fixed in 1.22.7, 1.23.1\n- stdlib (Go): affected all versions; fixed in 1.22.7, 1.23.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-34158/ (Markdown: https://insights.sbomify.com/CVE-2024-34158/index.md)","id":"CVE-2024-34158","markdown":"https://insights.sbomify.com/CVE-2024-34158/index.md","name":"CVE-2024-34158","record":{"aliases":["AZL-48929","AZL-79078","AZL-98805","BELL-CVE-2024-34158","BIT-golang-2024-34158","DEBIAN-CVE-2024-34158","ECHO-04d2-d010-5594","GHSA-j7vj-rw65-4v26","GO-2024-3107","MINI-chg7-85xq-9x4w","MINI-mcww-39vx-pwm2","MINI-p86q-w792-4qvq","UBUNTU-CVE-2024-34158"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go standard library","requires_auth":"none","summary":"Attackers can cause a panic and denial of service by providing deeply nested build tag expressions to the Go parser.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"description":"Calling Parse on a \"// +build\" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.","ecosystems":["Bitnami","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":"Stack exhaustion in Parse in go/build/constraint","id":"CVE-2024-34158","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":2,"n_references":4,"next":{"headline":"NGINX HTTP/3 QUIC vulnerability","id":"CVE-2024-34161"},"packages":[{"ecosystem":"Bitnami","fixed":["1.22.7","1.23.1"],"introduced":["0","1.23.0-0"],"last_affected":[],"package":"golang","purl":"pkg:bitnami/golang","source":"BIT-golang-2024-34158"},{"ecosystem":"Go","fixed":["1.22.7","1.23.1"],"introduced":["0","1.23.0-0"],"last_affected":[],"package":"stdlib","purl":"pkg:golang/stdlib","source":"GO-2024-3107"}],"prev":{"headline":"reserved but not needed","id":"CVE-2024-34157"},"products":["go/build/constraint"],"published":"2024-09-06","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-04","vendors":["Go standard library"]},"summary":"Attackers can cause a panic and denial of service by providing deeply nested build tag expressions to the Go parser.","url":"https://insights.sbomify.com/CVE-2024-34158/"}