{"answers":{"affected":"3 open source packages ship an affected version, including github.com/lightningnetwork/lnd.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38359 exists.","fix":"Upgrade github.com/lightningnetwork/lnd to 0.17.0-beta or later.","what":"CVE-2024-38359 is a medium-severity denial of service vulnerability in lightningnetwork lnd, published on 20 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-38359 and fix it if it is affected.\n\nWhat it is: CVE-2024-38359 is a medium-severity denial of service vulnerability in lightningnetwork lnd, published on 20 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38359 exists.\n\nAffected packages and fixed versions:\n- github.com/lightningnetwork/lnd (Go): affected all versions; fixed in 0.17.0-beta\n- github.com/lightningnetwork/lnd (Go): affected all versions; fixed in 0.17.0-beta\n- github.com/lightningnetwork/lnd (Go): affected all versions; fixed in 0.17.0-beta\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-38359/ (Markdown: https://insights.sbomify.com/CVE-2024-38359/index.md)","id":"CVE-2024-38359","markdown":"https://insights.sbomify.com/CVE-2024-38359/index.md","name":"CVE-2024-38359","record":{"aliases":["GHSA-9gxx-58q6-42p7","GO-2024-2943"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Lightning Network Daemon","requires_auth":"low_privilege","summary":"Attackers can cause denial of service in Lightning Network Daemon nodes via excessive memory allocation during onion processing.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"The Lightning Network Daemon (lnd) - is a complete implementation of a Lightning Network node. A parsing vulnerability in lnd's onion processing logic and lead to a DoS vector due to excessive memory allocation.  The issue was patched in lnd v0.17.0. Users should update to a version \u003e v0.17.0 to be protected. Users unable to upgrade may set the `--rejecthtlc` CLI flag and also disable forwarding on channels via the `UpdateChanPolicyCommand`, or disable listening on a public network interface via the `--nolisten` flag as a mitigation.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Lightning Network Daemon Onion Bomb","id":"CVE-2024-38359","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":3,"n_references":5,"next":{"headline":"Denial of service via Watched Words in Discourse","id":"CVE-2024-38360"},"packages":[{"ecosystem":"Go","fixed":["0.17.0-beta"],"introduced":["0"],"last_affected":[],"package":"github.com/lightningnetwork/lnd","purl":null,"source":"GHSA-9gxx-58q6-42p7"},{"ecosystem":"Go","fixed":["0.17.0-beta"],"introduced":["0"],"last_affected":[],"package":"github.com/lightningnetwork/lnd","purl":"pkg:golang/github.com/lightningnetwork/lnd","source":"GHSA-9gxx-58q6-42p7"},{"ecosystem":"Go","fixed":["0.17.0-beta"],"introduced":["0"],"last_affected":[],"package":"github.com/lightningnetwork/lnd","purl":"pkg:golang/github.com/lightningnetwork/lnd","source":"GO-2024-2943"}],"prev":{"headline":"Symlink bypasses filesystem sandbox in wasmer","id":"CVE-2024-38358"},"products":["lnd"],"published":"2024-06-20","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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["lightningnetwork"]},"summary":"Attackers can cause denial of service in Lightning Network Daemon nodes via excessive memory allocation during onion processing.","url":"https://insights.sbomify.com/CVE-2024-38359/"}