CVE-2024-6386 is a critical remote code execution vulnerability in the WPML plugin for WordPress affecting versions up to and including 4.6.12. The flaw is caused by insufficient input validation and sanitization in a render function that processes Twig templates, enabling server-side template injection. By supplying crafted template input, an attacker can cause the server to evaluate unintended Twig expressions and execute arbitrary code. Available reporting consistently describes the issue as exploitable against vulnerable WPML deployments and ties the root cause to improper handling of user-controlled input in Twig template rendering.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository provides a working proof-of-concept exploit for CVE-2024-6386, a critical remote code execution (RCE) vulnerability in the WPML WordPress plugin due to a Twig Server-Side Template Injection (SSTI) flaw. The exploit is implemented in Python (poc/sploit.py) and uses Selenium to automate browser interactions with a target WordPress site. The attacker must supply the target site URL, a valid WordPress username, and password. The script logs into the WordPress admin interface, navigates to the post editor, and injects a specially crafted shortcode containing a Twig SSTI payload. This payload is constructed to bypass WordPress's HTML encoding and dynamically builds the 'system' function and command strings from available variables, allowing execution of arbitrary system commands (such as 'id', 'pwd', and 'cat /etc/passwd'). The exploit then publishes the post and accesses it to trigger the payload and display the command output. The repository includes a main exploit script, a requirements file for dependencies, and documentation. The attack vector is network-based, requiring access to the WordPress admin interface. The endpoints involved are standard WordPress login, post editing, and post viewing URLs. The exploit is operational and demonstrates real RCE capability, but requires valid credentials and a vulnerable WPML installation.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical remote code execution vulnerability in the WordPress WPML plugin caused by insufficient validation of user input in Twig templates, enabling an authenticated Contributor-level attacker to exploit SSTI and execute malicious code.
A critical vulnerability affecting WPML, identified as CVE-2024-6386.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.