Camunda Platform, Remote Code Execution, CVE-2024-39127 (Critical)

Listen to this Post

The vulnerability CVE-2024-39127 is a critical remote code execution flaw in the Camunda Platform’s process engine. It arises from improper input sanitization within script task execution. An authenticated attacker with admin privileges (ROLE_ADMIN) can deploy a malicious process definition containing a script task. When this process is executed, the engine resolves and evaluates expressions within the script using the application’s Spring Expression Language (SpEL) context. This allows for arbitrary Java code execution by injecting a payload like `${T(java.lang.Runtime).getRuntime().exec(‘calc.exe’)}` into a script task. The exploit leverages the fact that the script engine resolver does not restrict access to dangerous classes, granting the attacker the same privileges as the application server.
Platform: Camunda Platform
Version: <12.16.0, <13.1.2
Vulnerability: RCE
Severity: Critical

date: 2024

Prediction: Patch Available

What Undercode Say:

`curl -s “https://docs.camunda.org/manual/latest/reference/rest/process-definition/deploy/” -X POST -H “Authorization: Bearer ” -F “[email protected]”`

`POST /engine-rest/process-definition/deploy`

`malicious.bpmn: `

How Exploit:

Deploy malicious BPMN. Execute process. SpEL injection.

Protection from this CVE

Upgrade to patched versions. Disable script engine. Apply principle of least privilege.

Impact:

Arbitrary code execution. Full system compromise. Data exfiltration.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top