{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6386 exists.","fix":"No fix has been published for CVE-2024-6386 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-6386 is a critical code injection vulnerability in WPML, published on 21 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6386 and fix it if it is affected.\n\nWhat it is: CVE-2024-6386 is a critical code injection vulnerability in WPML, published on 21 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6386 exists.\n\nAffected product: WPML. 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-2024-6386/ (Markdown: https://insights.sbomify.com/CVE-2024-6386/index.md)","id":"CVE-2024-6386","markdown":"https://insights.sbomify.com/CVE-2024-6386/index.md","name":"CVE-2024-6386","record":{"aliases":["GHSA-q8gr-qpfg-hv8p"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"low_privilege","summary":"Authenticated attackers with Contributor access can execute arbitrary code on the server via Twig Server-Side Template Injection in the WPML plugin.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Wordfence","cpe":[{"product":"wpml","vendor":"wpml"}],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/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-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"The WPML plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.6.12 via Twig Server-Side Template Injection. This is due to missing input validation and sanitization on the render function. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute code on the server.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-09-05","github_poc":2,"max_poc_stars":5,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-09-05T14:44:36Z","kind":"github_poc","ref":"https://github.com/argendo/CVE-2024-6386","stars":5,"title":"Research and PoC for CVE-2024-6386"},{"date":"2026-02-10T06:32:20Z","kind":"github_poc","ref":"https://github.com/bananoname/CVE-2024-6386-WPML-SSTI","stars":0,"title":null}],"tier":"weaponised"},"has_fix":null,"headline":"Code injection in WPML","id":"CVE-2024-6386","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"Openssh: regresshion - race condition in ssh allows rce/dos","id":"CVE-2024-6387"},"packages":[],"prev":{"headline":"Improper Access Control in GitLab","id":"CVE-2024-6385"},"products":["WPML"],"published":"2024-08-21","related":[{"cvss_score":7.5,"headline":"Security feature bypass in n/a","id":"CVE-2015-2792","kev_date_added":null,"published":"2015-03-30"},{"cvss_score":7.5,"headline":"SQL injection in n/a","id":"CVE-2015-2314","kev_date_added":null,"published":"2015-03-17"},{"cvss_score":6.4,"headline":"Cross-site scripting in WPML","id":"CVE-2025-3488","kev_date_added":null,"published":"2025-05-02"},{"cvss_score":6.4,"headline":"Missing authorization in n/a","id":"CVE-2015-2791","kev_date_added":null,"published":"2015-03-30"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2018-18069","kev_date_added":null,"published":"2018-10-08"},{"cvss_score":5.4,"headline":"WordPress WPML Multilingual CMS premium plugin \u003c= 4.5.10 - Broken Access Control vulnerability","id":"CVE-2022-38461","kev_date_added":null,"published":"2022-11-17"}],"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-08","vendors":["WPML"]},"summary":"Authenticated attackers with Contributor access can execute arbitrary code on the server via Twig Server-Side Template Injection in the WPML plugin.","url":"https://insights.sbomify.com/CVE-2024-6386/"}