{"answers":{"affected":"It affects 14 products.","exploited":"There is no known exploitation of CVE-2022-31481 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-31481 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-31481 is a critical memory corruption vulnerability in HID Mercury EP4502, published on 6 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-31481 and fix it if it is affected.\n\nWhat it is: CVE-2022-31481 is a critical memory corruption vulnerability in HID Mercury EP4502, published on 6 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-31481 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-31481/ (Markdown: https://insights.sbomify.com/CVE-2022-31481/index.md)","id":"CVE-2022-31481","markdown":"https://insights.sbomify.com/CVE-2022-31481/index.md","name":"CVE-2022-31481","record":{"aliases":["GHSA-4wgj-2885-vw22"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"HID Mercury controller","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary code via buffer overflow in firmware updates, allowing full device compromise on HID Mercury controllers.","user_interaction":"not_required","vuln_class":"memory_corruption"},"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":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"An unauthenticated attacker can send a specially crafted update file to the device that can overflow a buffer. 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. The overflowed data can allow the attacker to manipulate the “normal” code execution to that of their choosing. 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.","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 buffer overflow in firmware update process","id":"CVE-2022-31481","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Denial-of-Service via internal structure overflow","id":"CVE-2022-31482"},"packages":[],"prev":{"headline":"Unauthenticated Firmware Upload and Arbitrary Reboot","id":"CVE-2022-31480"},"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":9.6,"headline":"Remote Code Execution via command injection of the hostname","id":"CVE-2022-31479","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 code via buffer overflow in firmware updates, allowing full device compromise on HID Mercury controllers.","url":"https://insights.sbomify.com/CVE-2022-31481/"}