{"answers":{"affected":"It affects 14 products.","exploited":"There is no known exploitation of CVE-2022-31479 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-31479 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-31479 is a critical command injection vulnerability in HID Mercury EP4502, published on 6 Jun 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-31479 and fix it if it is affected.\n\nWhat it is: CVE-2022-31479 is a critical command injection vulnerability in HID Mercury EP4502, published on 6 Jun 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-31479 in the wild and no public exploit code.\n\nAffected product: HID Mercury EP4502. 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-2022-31479/ (Markdown: https://insights.sbomify.com/CVE-2022-31479/index.md)","id":"CVE-2022-31479","markdown":"https://insights.sbomify.com/CVE-2022-31479/index.md","name":"CVE-2022-31479","record":{"aliases":["GHSA-2pg7-j7hc-h682"],"analysis":{"component_type":"ics_ot","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"HID Mercury controller","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary shell commands via hostname injection on HID Mercury controllers, gaining remote access and persistence.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Carrier","cpe":[{"product":"lenels2_lnl-4420_firmware","vendor":"carrier"},{"product":"lenels2_lnl-x2210_firmware","vendor":"carrier"},{"product":"lenels2_lnl-x2220_firmware","vendor":"carrier"},{"product":"lenels2_lnl-x3300_firmware","vendor":"carrier"},{"product":"lenels2_lnl-x4420_firmware","vendor":"carrier"},{"product":"lenels2_s2-lp-1501_firmware","vendor":"carrier"},{"product":"lenels2_s2-lp-1502_firmware","vendor":"carrier"},{"product":"lenels2_s2-lp-2500_firmware","vendor":"carrier"},{"product":"lenels2_s2-lp-4502_firmware","vendor":"carrier"},{"product":"ep4502_firmware","vendor":"hidglobal"},{"product":"lp1501_firmware","vendor":"hidglobal"},{"product":"lp1502_firmware","vendor":"hidglobal"},{"product":"lp2500_firmware","vendor":"hidglobal"},{"product":"lp4502_firmware","vendor":"hidglobal"}],"cvss":{"score":9.6,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"description":"An unauthenticated attacker can update the hostname with a specially crafted name that will allow for shell commands to be executed during the core collection process. This vulnerability impacts products based on HID Mercury Intelligent Controllers LP1501, LP1502, LP2500, LP4502, and EP4502 which contain firmware versions prior to 1.302 for the LP series and 1.296 for the EP series. An attacker with this level of access on the device can monitor all communications sent to and from this device, modify onboard relays, change configuration files, or cause the device to become unstable. The injected commands only get executed during start up or when unsafe calls regarding the hostname are used. This allows the attacker to gain remote access to the device and can make their persistence permanent by modifying the filesystem.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Remote Code Execution via command injection of the hostname","id":"CVE-2022-31479","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Unauthenticated Firmware Upload and Arbitrary Reboot","id":"CVE-2022-31480"},"packages":[],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2022-31478"},"products":["EP4502","LNL-4420","LNL-X2210","LNL-X2220","LNL-X3300","LNL-X4420","LP1501","LP1502","LP2500","LP4502","S2-LP-1501","S2-LP-1502","S2-LP-2500","S2-LP-4502"],"published":"2022-06-06","related":[{"cvss_score":10,"headline":"Remote Code Execution via buffer overflow in firmware update process","id":"CVE-2022-31481","kev_date_added":null,"published":"2022-06-06"},{"cvss_score":9.1,"headline":"Arbitrary file write via authenticated OSDP file upload","id":"CVE-2022-31483","kev_date_added":null,"published":"2022-06-06"},{"cvss_score":8.8,"headline":"Command injection via Advanced Networking route add functionality","id":"CVE-2022-31486","kev_date_added":null,"published":"2022-06-06"},{"cvss_score":7.5,"headline":"Unauthenticated Firmware Upload and Arbitrary Reboot","id":"CVE-2022-31480","kev_date_added":null,"published":"2022-06-06"},{"cvss_score":7.5,"headline":"Denial-of-Service via internal structure overflow","id":"CVE-2022-31482","kev_date_added":null,"published":"2022-06-06"},{"cvss_score":7.5,"headline":"User Account Deletion Unauthenticated","id":"CVE-2022-31484","kev_date_added":null,"published":"2022-06-06"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["HID Mercury","LenelS2"]},"summary":"Unauthenticated attackers can execute arbitrary shell commands via hostname injection on HID Mercury controllers, gaining remote access and persistence.","url":"https://insights.sbomify.com/CVE-2022-31479/"}