{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-31581 exists.","fix":"No fix has been published for CVE-2021-31581 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-31581 is a high-severity command injection vulnerability in Akkadian Provisioning Manager Engine (PME), published on 22 Jul 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-31581 and fix it if it is affected.\n\nWhat it is: CVE-2021-31581 is a high-severity command injection vulnerability in Akkadian Provisioning Manager Engine (PME), published on 22 Jul 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-31581 exists.\n\nAffected product: Akkadian Provisioning Manager Engine (PME). 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-2021-31581/ (Markdown: https://insights.sbomify.com/CVE-2021-31581/index.md)","id":"CVE-2021-31581","markdown":"https://insights.sbomify.com/CVE-2021-31581/index.md","name":"CVE-2021-31581","record":{"aliases":["GHSA-rcqq-fm3c-9r79"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Provisioning Manager Engine","requires_auth":"high_privilege","summary":"Attackers can escape the restricted shell via the vi editor interface to execute arbitrary commands and escalate privileges.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"rapid7","cpe":[{"product":"ova_appliance","vendor":"akkadianlabs"},{"product":"provisioning_manager","vendor":"akkadianlabs"}],"cvss":{"score":7.9,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"},{"id":"CWE-269","name":"Improper Privilege Management"}],"description":"The restricted shell provided by Akkadian Provisioning Manager Engine (PME) can be escaped by abusing the 'Edit MySQL Configuration' command. This command launches a standard vi editor interface which can then be escaped. This issue was resolved in Akkadian OVA appliance version 3.0 (and later), Akkadian Provisioning Manager 5.0.2 (and later), and Akkadian Appliance Manager 3.3.0.314-4a349e0 (and later).","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-31581.yaml","stars":null,"title":"Akkadian Provisioning Manager - Information Disclosure"}],"tier":"weaponised"},"has_fix":null,"headline":"Akkadian Provisioning Manager Engine (PME) Shell Escape via 'vi' editor interface","id":"CVE-2021-31581","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-31583"},"packages":[],"prev":{"headline":"Akkadian Provisioning Manager Engine (PME) Shell Escape via 'exec' command","id":"CVE-2021-31580"},"products":["Provisioning Manager Engine (PME)"],"published":"2021-07-22","related":[{"cvss_score":8.7,"headline":"Akkadian Provisioning Manager Engine (PME) Shell Escape via 'exec' command","id":"CVE-2021-31580","kev_date_added":null,"published":"2021-07-22"},{"cvss_score":8.2,"headline":"Akkadian Provisioning Manager Engine (PME) Hard-Coded Credentials","id":"CVE-2021-31579","kev_date_added":null,"published":"2021-07-22"}],"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Akkadian"]},"summary":"Attackers can escape the restricted shell via the vi editor interface to execute arbitrary commands and escalate privileges.","url":"https://insights.sbomify.com/CVE-2021-31581/"}