CVE-2025-54236 Elastic Security · Elastic

Detect Adobe Commerce / Magento Improper Input Validation (CVE-2025-54236) in Elastic Security

Detects exploitation of CVE-2025-54236, an improper input validation vulnerability in Adobe Commerce and Magento. This KEV-listed vulnerability allows attackers to submit maliciously crafted input to Commerce/Magento endpoints, potentially leading to remote code execution, unauthorized data access, or store compromise. Detection focuses on anomalous HTTP request patterns to Magento/Commerce endpoints, unexpected PHP execution, and indicators of post-exploitation activity.

MITRE ATT&CK

Tactic
Initial Access Execution Persistence Impact

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by source.ip with maxspan=2m
  [network where event.category == "network" and
   http.request.method in ("POST", "PUT", "PATCH") and
   (
     url.path like~ "*/rest/*" or
     url.path like~ "*/graphql*" or
     url.path like~ "*/index.php/rest/*" or
     url.path like~ "*/admin/index.php*" or
     url.path like~ "*/downloader/*"
   ) and
   http.response.status_code in (200, 500, 403)
  ] with runs=3
  [process where event.category == "process" and
   event.type == "start" and
   process.parent.name in ("php", "php-fpm", "httpd", "nginx", "apache2") and
   process.name in ("sh", "bash", "cmd.exe", "powershell.exe", "wget", "curl", "python", "python3")
  ]
critical severity high confidence

EQL sequence detection correlating repeated suspicious HTTP requests to Magento endpoints with subsequent child process spawning from web server processes, a strong indicator of successful RCE via CVE-2025-54236.

Data Sources

Elastic AgentAuditbeatPacketbeatWinlogbeat

Required Tables

logs-*filebeat-*auditbeat-*packetbeat-*

False Positives & Tuning

  • Magento cron jobs spawning shell processes through legitimate PHP execution
  • Deployment scripts that use curl/wget for extension downloads during maintenance windows
  • Admin-triggered import/export operations that invoke shell commands via PHP
  • Security monitoring agents running from web server context

Other platforms for CVE-2025-54236


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 available with Pro.

  1. Test 1Magento REST API Malformed Input Fuzzing

    Expected signal: Web server access logs should show POST requests to /rest/V1/products and /rest/V1/customers with large Content-Length values and HTTP 400/500 response codes

  2. Test 2PHP Web Shell Upload via Compromised Magento Admin

    Expected signal: IIS/Apache logs showing POST to admin CMS endpoint; filesystem monitoring alerts on new .php file creation in pub/media/; process execution logs if PHP is evaluated

  3. Test 3Rapid Sequential API Endpoint Reconnaissance

    Expected signal: Web server access logs showing rapid sequential POST requests to multiple /rest/V1/ endpoints from a single source IP within a short timeframe

Unlock Pro Content

Get the full detection package for CVE-2025-54236 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections