CVE-2024-6386CWE-1336

WPML Multilingual CMS <= 4.6.12 - Authenticated (Contributor+) Remote Code Execution via Twig Server-Side Template Injection

Critical · published August 21, 2024

CVSS v3.1
9.9
EPSS
26%
Percentile
98.0
In the wild
Unconfirmed
What it is

🚨 A sneaky flaw in the WPML plugin lets authenticated users run their own code — it's like giving a contributor the keys to the server! 🔥 Think of it like a restaurant kitchen where a waiter can start cooking without any checks. If the kitchen staff isn't careful about what orders they accept, a mischievous waiter could serve up something dangerous! This vulnerability opens the door for attackers with Contributor-level access and above to execute arbitrary code on your server, which could lead to total chaos — they could steal data, alter content, or even take control of your entire site. The potential damage here is absolutely devastating!

Put simply

Think of it like a restaurant kitchen where a waiter can start cooking without any checks. If the kitchen staff isn't careful about what orders they accept, a mischievous waiter could serve up something dangerous! The vulnerability stems from a missing input validation and sanitization in the Twig Server-Side Template Injection within the WPML plugin's render function. This flaw allows code execution as soon as an authenticated user submits malicious input.

What to do

This vulnerability opens the door for attackers with Contributor-level access and above to execute arbitrary code on your server, which could lead to total chaos — they could steal data, alter content, or even take control of your entire site. The potential damage here is absolutely devastating! To protect yourself, immediately update the WPML plugin to version 4.6.13 or later, which addresses this critical vulnerability. Additionally, review and tighten user access controls to minimize exposure. 🛡️ You've got this! Follow these steps, and you'll be on your way to securing your site in no time! 🔒

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.25533 · 98.0th percentile
Weakness
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
Published
2024-08-21T20:29Z
EPSS history
Timeline
  • 21 AUG 20:29Z
    WPML Multilingual CMS <= 4.6.12 - Authenticated (Contributor+) Remote Code Execution via Twig Server-Side Template Injection
    cvelistv5