Skip to content
CVE-2026-132877 Elastic Security · Elastic

Detect Adobe Experience Manager Code Injection RCE (CVE-2026-132877) in Elastic Security

Detects exploitation attempts against CVE-2026-132877, an Improper Control of Generation of Code ('Code Injection', CWE-94) vulnerability in Adobe Experience Manager (AEM) that can result in arbitrary code execution (CVSS 9.9). Adversaries inject attacker-controlled expressions or code (e.g. via HTL/Sling/JSP evaluation, OSGi console, or crafted POST bodies to AEM servlets) that AEM evaluates server-side, yielding RCE in the context of the AEM service account. This detection surfaces suspicious requests to AEM administrative and scripting endpoints correlated with child process spawning (shell, scripting interpreters) from the AEM Java/Quickstart process, which is the highest-fidelity signal of successful code injection. Exploit status is currently theoretical per APSB26-104; tune thresholds to your AEM deployment.

MITRE ATT&CK

Tactic
Initial Access Execution

Elastic Detection Query

Elastic Security (Elastic)
eql
// df00tech DF00-939a365639 · https://df00tech.com/detections/CVE-2026-132877 · licence: https://df00tech.com/detections/licence
sequence by host.name with maxspan=5m
  [ process where event.type == "start" and
      process.parent.name : ("java", "java.exe", "Quickstart.exe") and
      process.parent.command_line : ("*crx-quickstart*", "*cq-quickstart*", "*sling*", "*aem*", "*experience-manager*") and
      process.name : ("cmd.exe", "powershell.exe", "bash", "sh", "dash", "curl", "wget", "nc", "ncat", "whoami", "whoami.exe", "python", "python3", "perl") ]
critical severity medium confidence

Detects a shell or scripting interpreter started by the AEM Java/Quickstart process, the post-exploitation signal of CVE-2026-132877 code injection.

Data Sources

Elastic DefendWinlogbeatAuditbeat

Required Tables

logs-endpoint.events.process-*winlogbeat-*

False Positives & Tuning

  • Legitimate administrative shell invocations by the AEM service account
  • Developer Groovy/OSGi console usage on authoring tiers
  • Deployment automation running under the Java parent process

Other platforms for CVE-2026-132877


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Simulated AEM OSGi console scripting POST

    Expected signal: Web access log entry: POST /system/console/scriptconsole from the test source IP with HTTP 200.

  2. Test 2 AEM Java process spawns shell child (post-exploit sim)

    Expected signal: Process-creation event: a shell/interpreter child (id, whoami, uname) with a parent command line containing crx-quickstart/aem.

  3. Test 3 AEM Java process spawns PowerShell download (Windows)

    Expected signal: Process-creation events showing cmd.exe/powershell.exe with network download activity under a Java/Quickstart parent.


Response Playbook

Triage

  1. Identify the affected host and confirm it runs Adobe Experience Manager; capture the AEM version/service pack and compare against APSB26-104 to confirm it is in the vulnerable range.
  2. Review the web access logs (IIS/Apache/dispatcher) for the correlated source IP: enumerate all POST/PUT requests to /system/console, /crx/, /bin/, Groovy/script-console or .jsp endpoints and note the request bodies and HTTP response codes.
  3. Examine the child process command line spawned by the AEM Java/Quickstart process to determine what was executed (recon such as whoami/id, download of a payload, or reverse shell).
  4. Determine whether the request originated from an authenticated session and whether that account should have scripting/console privileges.

Containment

  1. Block the attacker source IP(s) at the WAF/dispatcher and isolate the affected AEM host from the network if active exploitation is confirmed.
  2. Disable or restrict access to the OSGi web console, script/Groovy console and CRXDE endpoints at the dispatcher, and rotate the AEM service-account and admin credentials.
  3. Apply the Adobe patch from APSB26-104 to all affected AEM instances and restart the service.

Evidence Collection

  1. Preserve the AEM access logs, request.log, error.log and dispatcher logs covering the attack window, plus the full EDR process tree.
  2. Capture a memory image and disk snapshot of the AEM host before remediation, and collect any dropped files, newly created JSP/servlets under /apps or /libs, and modified OSGi bundles.

Escalation Criteria

  • !Escalate to incident response if a shell, reverse connection, or payload download is confirmed as a child of the AEM process.
  • !Escalate if evidence shows lateral movement, credential theft, or persistence (new users, scheduled tasks, modified bundles) beyond the initial code execution.

Investigation Guide

Forensic Artifacts

  • >AEM access.log / request.log entries showing POST/PUT to console and scripting endpoints
  • >New or modified JSP/servlet files and OSGi bundles under crx-quickstart
  • >EDR process-creation records of shell/interpreter children of the Java process
  • >Dispatcher cache and error logs around the exploitation window

Tuning Guidance

Baseline legitimate administrative access to the OSGi and Groovy consoles from known jump hosts/admin IPs and exclude them. On authoring tiers (vs publish), console and scripting usage is far more common, so raise the severity/threshold on publish instances where such activity should never occur. Maintain an allowlist of the AEM service account's expected child processes (deployment/backup scripts) to reduce false positives on the process-spawn correlation.


Hunting Queries

Hunt for repeated access to AEM script/Groovy/OSGi console and CRXDE endpoints that can be abused for code injection.

Hunting — KQL
kql
// df00tech DF00-939a365639 · https://df00tech.com/detections/CVE-2026-132877 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csMethod in ("POST","PUT") | where csUriStem has_any ("/system/console/scriptconsole","/system/console/bundles","/crx/de","/bin/groovyconsole") | summarize count() by cIP, csUriStem, scStatus | where count_ > 1
Hunting — SPL
spl
``` df00tech DF00-939a365639 · https://df00tech.com/detections/CVE-2026-132877 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype=iis OR sourcetype=access_combined) (cs_method=POST OR cs_method=PUT) (cs_uri_stem="*scriptconsole*" OR cs_uri_stem="*groovyconsole*" OR cs_uri_stem="*/crx/de*" OR cs_uri_stem="*/system/console/bundles*") | stats count by c_ip, cs_uri_stem, sc_status | where count>1

Atomic Red Team Tests

Test 1 Simulated AEM OSGi console scripting POST
linux

Sends a POST to the AEM script console endpoint simulating a code-injection attempt. Lab-only against a test AEM instance.

Command

bash
curl -s -u admin:admin -X POST 'http://aem-test:4502/system/console/scriptconsole' --data-urlencode 'code=println "id".execute().text' --data 'lang=groovy' -o /tmp/aem_poc_resp.txt

Cleanup

bash
rm -f /tmp/aem_poc_resp.txt

Expected Telemetry

Web access log entry: POST /system/console/scriptconsole from the test source IP with HTTP 200.

Expected Detection

The kql/spl web-log hunting queries flag the POST to the script console endpoint.

Test 2 AEM Java process spawns shell child (post-exploit sim)
linux

Simulates the AEM Java/Quickstart process executing an OS command, mimicking successful code injection. Run on a lab host with a dummy java parent.

Command

bash
bash -c 'exec -a java_crx-quickstart_aem bash -c "id; whoami; uname -a"'

Cleanup

bash
echo 'no artifacts to remove'

Expected Telemetry

Process-creation event: a shell/interpreter child (id, whoami, uname) with a parent command line containing crx-quickstart/aem.

Expected Detection

The EDR process-correlation queries (elastic_eql, crowdstrike_cql, chronicle_yaral) detect the shell child of the AEM Java parent.

Test 3 AEM Java process spawns PowerShell download (Windows)
windows

Simulates code injection on a Windows AEM host where the Java process launches PowerShell to download a payload. Lab-only.

Command

powershell
powershell.exe -NoProfile -Command "Start-Process cmd.exe -ArgumentList '/c whoami & powershell -c \"iwr http://127.0.0.1/payload -OutFile $env:TEMP\\p.txt\"'"

Cleanup

powershell
powershell.exe -NoProfile -Command "Remove-Item $env:TEMP\p.txt -ErrorAction SilentlyContinue"

Expected Telemetry

Process-creation events showing cmd.exe/powershell.exe with network download activity under a Java/Quickstart parent.

Expected Detection

The kql and crowdstrike_cql queries detect cmd/powershell spawned from the AEM Java process.

Related Detections