{"answers":{"affected":"2 open source packages ship an affected version, including network. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21488 exists.","fix":"Upgrade network to 0.7.0 or later.","what":"CVE-2024-21488 is a high-severity command injection vulnerability in network, published on 30 Jan 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-21488 and fix it if it is affected.\n\nWhat it is: CVE-2024-21488 is a high-severity command injection vulnerability in network, published on 30 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21488 exists.\n\nAffected packages and fixed versions:\n- network (npm): affected all versions; fixed in 0.7.0\n- network (npm): affected all versions; fixed in 0.7.0\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-21488/ (Markdown: https://insights.sbomify.com/CVE-2024-21488/index.md)","id":"CVE-2024-21488","markdown":"https://insights.sbomify.com/CVE-2024-21488/index.md","name":"CVE-2024-21488","record":{"aliases":["GHSA-vvh2-82c7-ppfg"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"npm network package","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands via unsanitized input in the mac_address_for function of the network npm package.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"network","vendor":"forkhq"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"Versions of the package network before 0.7.0 are vulnerable to Arbitrary Command Injection due to use of the child_process exec function without input sanitization. If (attacker-controlled) user input is given to the mac_address_for function of the package, it is possible for the attacker to execute arbitrary commands on the operating system that this package is being run on.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"network Arbitrary Command Injection vulnerability","id":"CVE-2024-21488","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":2,"n_references":6,"next":{"headline":"uPlot Prototype Pollution vulnerability","id":"CVE-2024-21489"},"packages":[{"ecosystem":"npm","fixed":["0.7.0"],"introduced":["0"],"last_affected":[],"package":"network","purl":null,"source":"GHSA-vvh2-82c7-ppfg"},{"ecosystem":"npm","fixed":["0.7.0"],"introduced":["0"],"last_affected":[],"package":"network","purl":"pkg:npm/network","source":"GHSA-vvh2-82c7-ppfg"}],"prev":{"headline":"Dash apps vulnerable to Cross-site Scripting","id":"CVE-2024-21485"},"products":["network","org.webjars.npm:network"],"published":"2024-01-30","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":"US public information, NVD API terms","name":"NVD"},{"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":"total"},"state":"PUBLISHED","updated":"2026-07-26","vendors":["n/a"]},"summary":"Attackers can execute arbitrary OS commands via unsanitized input in the mac_address_for function of the network npm package.","url":"https://insights.sbomify.com/CVE-2024-21488/"}