Potential PHP2Shell Exploitation Attempt
This rule detects a distinctive PHP out-of-memory fatal error associated with PHP2Shell exploitation attempts. The combination of an allowed-memory-size exhaustion and the location "Unknown on line 0" is produced…
Description
This rule detects a distinctive PHP out-of-memory fatal error associated with PHP2Shell exploitation attempts. The combination of an allowed-memory-size exhaustion and the location "Unknown on line 0" is produced before normal application execution and is an indicator of attempts to exploit PHP memory-safety vulnerabilities, including CVE-2026-109618 and CVE-2026-109619. The rule can detect unsuccessful as well as successful attempts and does not, by itself, confirm remote code execution.
Detection logic
Its licence does not clear it for publishing here
Sunturai publishes a detection's own text where the licence it arrived under has been reviewed and permits it, and Elastic License 2.0 has not. The query as its source wrote it, its canonical form and the hash that pins this revision are in the workspace record.
Detection requirements
- Platform
- ContainersESXiIaaSLinuxmacOSNetwork DevicesWindows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- event_index
Known benign triggers
- Application defects, stress tests, or intentionally low PHP memory limits may generate similar errors. Confirm the complete signature, source, timing, and surrounding requests before escalating.
- Authorized vulnerability research or penetration testing of PHP2Shell will trigger this rule.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| nvd.nist.gov/vuln/detail/CVE-2026-109618 | Only this detection cites it |
| nvd.nist.gov/vuln/detail/CVE-2026-109619 | Only this detection cites it |
| www.wiz.io/blog/php2shell-php-rce | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- b05dfacd-b6c9-4b13-a669-2619867547f9
- Tagged by the source as
- Data Source: ApacheData Source: Apache TomcatData Source: NginxDomain: WebResources: Investigation GuideRule Type: QueryService: Apache HTTP ServerService: Apache TomcatService: NginxTactic: Initial AccessThreat: Vulnerability ExploitUse Case: Threat DetectionUse Case: VulnerabilityVuln: CVE-2026-109618Vuln: CVE-2026-109619
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Oct 23, 2026
- Version
- 1