{"answers":{"affected":"It affects 32 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31474 exists.","fix":"No fix has been published for CVE-2023-31474 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-31474 is a high-severity command injection vulnerability in n/a, published on 9 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-31474 and fix it if it is affected.\n\nWhat it is: CVE-2023-31474 is a high-severity command injection vulnerability in n/a, published on 9 May 2023. 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-2023-31474 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-2023-31474/ (Markdown: https://insights.sbomify.com/CVE-2023-31474/index.md)","id":"CVE-2023-31474","markdown":"https://insights.sbomify.com/CVE-2023-31474/index.md","name":"CVE-2023-31474","record":{"aliases":["GHSA-xgmf-7522-grcf"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"GL.iNet router","requires_auth":"none","summary":"Attackers can inject parameters to list files in specific directories via the software installation feature on GL.iNet devices.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"gl-a1300_firmware","vendor":"gl-inet"},{"product":"gl-ap1300_firmware","vendor":"gl-inet"},{"product":"gl-ap1300lte_firmware","vendor":"gl-inet"},{"product":"gl-ar300m_firmware","vendor":"gl-inet"},{"product":"gl-ar750_firmware","vendor":"gl-inet"},{"product":"gl-ar750s_firmware","vendor":"gl-inet"},{"product":"gl-ax1800_firmware","vendor":"gl-inet"},{"product":"gl-axt1800_firmware","vendor":"gl-inet"},{"product":"gl-b1300_firmware","vendor":"gl-inet"},{"product":"gl-b2200_firmware","vendor":"gl-inet"},{"product":"gl-e750_firmware","vendor":"gl-inet"},{"product":"gl-mifi_firmware","vendor":"gl-inet"},{"product":"gl-mt1300_firmware","vendor":"gl-inet"},{"product":"gl-mt2500_firmware","vendor":"gl-inet"},{"product":"gl-mt2500a_firmware","vendor":"gl-inet"},{"product":"gl-mt3000_firmware","vendor":"gl-inet"},{"product":"gl-mt300n-v2_firmware","vendor":"gl-inet"},{"product":"gl-mv1000_firmware","vendor":"gl-inet"},{"product":"gl-mv1000w_firmware","vendor":"gl-inet"},{"product":"gl-s10_firmware","vendor":"gl-inet"},{"product":"gl-s1300_firmware","vendor":"gl-inet"},{"product":"gl-s200_firmware","vendor":"gl-inet"},{"product":"gl-s20_firmware","vendor":"gl-inet"},{"product":"gl-sf1200_firmware","vendor":"gl-inet"},{"product":"gl-sft1200_firmware","vendor":"gl-inet"},{"product":"gl-usb150_firmware","vendor":"gl-inet"},{"product":"gl-x1200_firmware","vendor":"gl-inet"},{"product":"gl-x3000_firmware","vendor":"gl-inet"},{"product":"gl-x300b_firmware","vendor":"gl-inet"},{"product":"gl-x750_firmware","vendor":"gl-inet"},{"product":"gl-xe300_firmware","vendor":"gl-inet"},{"product":"microuter-n300_firmware","vendor":"gl-inet"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[],"description":"An issue was discovered on GL.iNet devices before 3.216. Through the software installation feature, it is possible to inject arbitrary parameters in a request to cause opkg to obtain a list of files in a specific directory, by using the regex feature in a package name.","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-2023-31474","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"Memory corruption in n/a","id":"CVE-2023-31475"},"packages":[],"prev":{"headline":"Command injection in n/a","id":"CVE-2023-31473"},"products":["n/a"],"published":"2023-05-09","related":[{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2023-50919","kev_date_added":null,"published":"2024-01-12"},{"cvss_score":9.8,"headline":"Privilege escalation in n/a","id":"CVE-2023-50921","kev_date_added":null,"published":"2024-01-03"},{"cvss_score":9.8,"headline":"Security feature bypass in n/a","id":"CVE-2023-31471","kev_date_added":null,"published":"2023-05-10"},{"cvss_score":9,"headline":"Memory corruption in n/a","id":"CVE-2023-31475","kev_date_added":null,"published":"2023-05-11"},{"cvss_score":7.8,"headline":"Command injection in n/a","id":"CVE-2023-50445","kev_date_added":null,"published":"2023-12-28"},{"cvss_score":7.5,"headline":"Path traversal in n/a","id":"CVE-2023-31477","kev_date_added":null,"published":"2023-05-11"},{"cvss_score":7.5,"headline":"Command injection in n/a","id":"CVE-2023-31472","kev_date_added":null,"published":"2023-05-09"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-29","vendors":["n/a"]},"summary":"Attackers can inject parameters to list files in specific directories via the software installation feature on GL.iNet devices.","url":"https://insights.sbomify.com/CVE-2023-31474/"}