{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31491 exists.","fix":"No fix has been published for CVE-2022-31491 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-31491 is a critical code injection vulnerability in n/a, published on 22 Aug 2025. 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-31491 and fix it if it is affected.\n\nWhat it is: CVE-2022-31491 is a critical code injection vulnerability in n/a, published on 22 Aug 2025. 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-2022-31491 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-2022-31491/ (Markdown: https://insights.sbomify.com/CVE-2022-31491/index.md)","id":"CVE-2022-31491","markdown":"https://insights.sbomify.com/CVE-2022-31491/index.md","name":"CVE-2022-31491","record":{"aliases":["GHSA-hxp2-x3ch-hv5v"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"UPS management software","requires_auth":"none","summary":"Remote unauthenticated attackers can execute arbitrary code on Voltronic Power UPS management software via the web interface.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cisa-adp","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-94","name":"Improper Control of Generation of Code"},{"id":"CWE-749","name":"Exposed Dangerous Method or Function"}],"description":"Voltronic Power ViewPower through 1.04-24215, ViewPower Pro through 2.0-22165, and PowerShield Netguard before 1.04-23292 allows a remote attacker to run arbitrary code via an unspecified web interface related to detection of a managed UPS shutting down. An unauthenticated attacker can use this to run arbitrary code immediately regardless of any managed UPS state or presence.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-07-03","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-07-03T05:15:55Z","kind":"github_poc","ref":"https://github.com/ready2disclose/CVE-2022-31491","stars":0,"title":"CVE-2022-31491"}],"tier":"weaponised"},"has_fix":null,"headline":"Code injection in n/a","id":"CVE-2022-31491","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2022"},"n_packages":0,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2022-31492"},"packages":[],"prev":{"headline":"SQL injection in n/a","id":"CVE-2022-31489"},"products":["n/a"],"published":"2025-08-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-08-22","vendors":["n/a"]},"summary":"Remote unauthenticated attackers can execute arbitrary code on Voltronic Power UPS management software via the web interface.","url":"https://insights.sbomify.com/CVE-2022-31491/"}