{"answers":{"affected":"It affects 28 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39227 exists.","fix":"No fix has been published for CVE-2024-39227 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-39227 is a critical command injection vulnerability in n/a, published on 6 Aug 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-39227 and fix it if it is affected.\n\nWhat it is: CVE-2024-39227 is a critical command injection vulnerability in n/a, published on 6 Aug 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-39227 exists.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-39227/ (Markdown: https://insights.sbomify.com/CVE-2024-39227/index.md)","id":"CVE-2024-39227","markdown":"https://insights.sbomify.com/CVE-2024-39227/index.md","name":"CVE-2024-39227","record":{"aliases":["GHSA-8j3m-968h-m85q"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"GL-iNet router firmware","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary code or perform directory traversal on GL-iNet routers via crafted JSON data in the /cgi-bin/glc endpoint.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"a1300_firmware","vendor":"gl-inet"},{"product":"ap1300_firmware","vendor":"gl-inet"},{"product":"ar300m16_firmware","vendor":"gl-inet"},{"product":"ar300m_firmware","vendor":"gl-inet"},{"product":"ar750_firmware","vendor":"gl-inet"},{"product":"ar750s_firmware","vendor":"gl-inet"},{"product":"ax1800_firmware","vendor":"gl-inet"},{"product":"axt1800_firmware","vendor":"gl-inet"},{"product":"b1300_firmware","vendor":"gl-inet"},{"product":"b2200_firmware","vendor":"gl-inet"},{"product":"e750_firmware","vendor":"gl-inet"},{"product":"mt1300_firmware","vendor":"gl-inet"},{"product":"mt2500_firmware","vendor":"gl-inet"},{"product":"mt3000_firmware","vendor":"gl-inet"},{"product":"mt300n-v2_firmware","vendor":"gl-inet"},{"product":"mt6000_firmware","vendor":"gl-inet"},{"product":"mv1000_firmware","vendor":"gl-inet"},{"product":"mv1000w_firmware","vendor":"gl-inet"},{"product":"n300_firmware","vendor":"gl-inet"},{"product":"s1300_firmware","vendor":"gl-inet"},{"product":"sf1200_firmware","vendor":"gl-inet"},{"product":"sft1200_firmware","vendor":"gl-inet"},{"product":"usb150_firmware","vendor":"gl-inet"},{"product":"x3000_firmware","vendor":"gl-inet"},{"product":"x300b_firmware","vendor":"gl-inet"},{"product":"x750_firmware","vendor":"gl-inet"},{"product":"xe3000_firmware","vendor":"gl-inet"},{"product":"xe300_firmware","vendor":"gl-inet"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"},{"id":"CWE-75","name":"Failure to Sanitize Special Elements into a Different Plane"}],"description":"GL-iNet products AR750/AR750S/AR300M/AR300M16/MT300N-V2/B1300/MT1300/SFT1200/X750 v4.3.11, MT3000/MT2500/AXT1800/AX1800/A1300/X300B v4.5.16, XE300 v4.3.16, E750 v4.3.12, AP1300/S1300 v4.3.13, and XE3000/X3000 v4.4 were discovered to contain insecure permissions in the endpoint /cgi-bin/glc. This vulnerability allows unauthenticated attackers to execute arbitrary code or possibly a directory traversal via crafted JSON data.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":null,"headline":"Command injection in n/a","id":"CVE-2024-39227","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"Command injection in n/a","id":"CVE-2024-39228"},"packages":[],"prev":{"headline":"Command injection in n/a","id":"CVE-2024-39226"},"products":["n/a"],"published":"2024-08-06","related":[{"cvss_score":9.8,"headline":"Other in n/a","id":"CVE-2024-39225","kev_date_added":null,"published":"2024-08-06"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2024-39228","kev_date_added":null,"published":"2024-08-06"},{"cvss_score":8.8,"headline":"Path traversal in n/a","id":"CVE-2024-45262","kev_date_added":null,"published":"2024-10-24"},{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2024-45263","kev_date_added":null,"published":"2024-10-24"},{"cvss_score":8,"headline":"Missing authorization in n/a","id":"CVE-2024-45260","kev_date_added":null,"published":"2024-10-24"},{"cvss_score":8,"headline":"Auth bypass in n/a","id":"CVE-2024-45261","kev_date_added":null,"published":"2024-10-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-15","vendors":["n/a"]},"summary":"Unauthenticated attackers can execute arbitrary code or perform directory traversal on GL-iNet routers via crafted JSON data in the /cgi-bin/glc endpoint.","url":"https://insights.sbomify.com/CVE-2024-39227/"}