Remote Code Execution in Apache Unomi
Description
Apache Unomi prior to 1.5.2 allows remote code execution via OGNL or MVEL script injection in the /context.json endpoint.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Apache Unomi prior to 1.5.2 allows remote code execution via OGNL or MVEL script injection in the /context.json endpoint.
Vulnerability
Overview
CVE-2020-13942 is a critical remote code execution vulnerability in Apache Unomi, a Java-based customer data platform. The vulnerability resides in the /context.json public endpoint, which processes user-supplied OGNL (Object-Graph Navigation Language) and MVEL (MVFLEX Expression Language) scripts without adequate sanitization. Prior to version 1.5.1, an initial fix was attempted but was incomplete, allowing attackers to bypass the filter using alternative injection vectors. The flaw was fully mitigated in version 1.5.2 by completely filtering all script expressions from the input [1][2][3].
Attack
Vector and Exploitation
The /context.json endpoint accepts JSON payloads containing conditions that may reference OGNL or MVEL scripting. By crafting malicious payloads, an unauthenticated attacker can inject arbitrary script expressions that are evaluated server-side. No authentication is required, and the endpoint is publicly accessible, making the attack surface broad. The vulnerability was discovered and reported by Eugene Rojavski of Checkmarx [3][4].
Impact
Successful exploitation allows an attacker to execute arbitrary code with the permissions of the Java process running Apache Unomi. This can lead to full compromise of the affected system, including data exfiltration, installation of malware, or lateral movement within the network [1][3].
Mitigation
All versions of Apache Unomi prior to 1.5.2 are vulnerable. Users must upgrade to version 1.5.2 or later, which completely filters OGNL and MVEL expressions from the input. No workarounds are available; the only effective remediation is upgrading [2][3].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.unomi:unomiMaven | < 1.5.2 | 1.5.2 |
Affected products
2- Apache Software Foundation/Apache Unomiv5Range: unspecified
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
17- github.com/advisories/GHSA-xp5j-wj4h-2jq9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-13942ghsaADVISORY
- unomi.apache.org./security/cve-2020-13942.txtghsax_refsource_MISCWEB
- www.openwall.com/lists/oss-security/2020/11/24/5ghsamailing-listx_refsource_MLISTWEB
- advisory.checkmarx.net/advisory/CX-2020-4284ghsax_refsource_MISCWEB
- lists.apache.org/thread.html/r08a4057ff7196b8880117edaa4b6207cbd36ed692d8dd1f5a56b4d0f%40%3Cannounce.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r08a4057ff7196b8880117edaa4b6207cbd36ed692d8dd1f5a56b4d0f@%3Cannounce.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r4a8fa91836687eaca42b5420a778ca8c8fd3a3740e4cf4401acc9118%40%3Cdev.unomi.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r4a8fa91836687eaca42b5420a778ca8c8fd3a3740e4cf4401acc9118%40%3Cusers.unomi.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r4a8fa91836687eaca42b5420a778ca8c8fd3a3740e4cf4401acc9118@%3Cdev.unomi.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r4a8fa91836687eaca42b5420a778ca8c8fd3a3740e4cf4401acc9118@%3Cusers.unomi.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r79672c25e0ef9bb4b9148376281200a8e61c6d5ef5bb705e9a363460%40%3Ccommits.unomi.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r79672c25e0ef9bb4b9148376281200a8e61c6d5ef5bb705e9a363460@%3Ccommits.unomi.apache.org%3EghsaWEB
- lists.apache.org/thread.html/rcb6d2eafcf15def433aaddfa06738e5faa5060cef2647769e178999a%40%3Cdev.unomi.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/rcb6d2eafcf15def433aaddfa06738e5faa5060cef2647769e178999a%40%3Cusers.unomi.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/rcb6d2eafcf15def433aaddfa06738e5faa5060cef2647769e178999a@%3Cdev.unomi.apache.org%3EghsaWEB
- lists.apache.org/thread.html/rcb6d2eafcf15def433aaddfa06738e5faa5060cef2647769e178999a@%3Cusers.unomi.apache.org%3EghsaWEB
News mentions
0No linked articles in our index yet.