WPML
CVE-2024-6386
CRITICAL
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Lifecycle Timeline
2DescriptionCVE.org
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.
AnalysisAI
Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor-level authenticated users to execute arbitrary code on the underlying server via Twig Server-Side Template Injection in the shortcode render function. Publicly available exploit code exists and EPSS rates the exploitation probability at 73.91% (99th percentile), making this a high-priority issue for any WordPress site running WPML.
Technical ContextAI
WPML is one of the most widely deployed multilingual plugins for WordPress, identified by CPE cpe:2.3:a:wpml:wpml:*:*:*:*:*:wordpress:*:*. The flaw is classified as CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine), specifically a Server-Side Template Injection (SSTI) flaw in WPML's use of the Twig templating engine. When user-controlled input reaches Twig's render function without sanitization, attackers can inject template syntax that Twig evaluates server-side, abusing Twig's object filters and PHP interoperability to reach arbitrary PHP execution from what is normally rendered as benign shortcode output.
RemediationAI
Upgrade WPML to version 4.6.13 or later, which the vendor released to address the Twig SSTI; cite the Wordfence Threat Intelligence advisory and the WPML release notes on wpml.org for the authoritative fix reference. Until upgrade is possible, restrict who can author content by removing or downgrading untrusted Contributor and Author accounts, temporarily disable open user registration, and audit existing low-privilege users for unexpected activity; on multisite deployments, consider deactivating WPML on lower-trust sites. As compensating controls, deploy a WAF rule that blocks Twig-style payloads (such as {{, }}, and known Twig sandbox-escape gadgets) in WPML shortcode parameters, knowing this may produce false positives on legitimate multilingual content and is not a substitute for patching.
Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e
Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve
changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic
A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all
Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re
Server-side template injection in FOSSBilling versions prior to 0.8.0 allows authenticated administrators to execute arb
AutoGPT versions 0.3.4 and earlier are vulnerable to a Server-Side Template Injection (SSTI) that could lead to Remote C
Improper Neutralization of Special Elements Used in a Template Engine in GitHub repository mlflow/mlflow prior to 2.9.2.
Improper Neutralization of Special Elements Used in a Template Engine in GitHub repository microweber/microweber prior t
OneBlog v2.3.6 was discovered to contain a template injection vulnerability via the template management department. Rate
In version 3.22.0 of aimhubio/aim, the AimQL query language uses an outdated version of the safer_getattr() function fro
Share
External POC / Exploit Code
Leaving vuln.today