title: PHP2Shell - PHP Memory Exhaustion, Fatal Error or Worker Crash
name: php2shell_linux_php_oom_fatal_crash
id: c2d9a4f0-7e1b-4a3c-b6d5-0f8e2a9c4b03
status: experimental
description: |
  Matches PHP 'Allowed memory size ... exhausted' / 'Out of memory' / fatal errors, PHP-FPM children exiting
  on a signal and Apache children exiting with a segmentation fault (mod_php). Per GHSA-w8hw-w9fx-j79w, exploitation relies on controllable OOM; FPM exits the child when request
  startup fails. Bursts of these messages on internet-facing hosts warrant investigation. Note the advisory
  warns a failure may occur before PHP writes any message.
references:
  - https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w
  - https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp
author: Cybaverse
date: 2026-10-21
modified: 2026-10-26
tags:
  - attack.initial-access
  - attack.t1190
  - cve.2026-109618
  - cve.2026-109619
logsource:
  product: linux
  service: syslog
detection:
  keywords:
    - 'Allowed memory size of'
    - 'PHP Fatal error:  Out of memory'
    - 'PHP Fatal error:'
    - 'exited on signal'
    - 'exit signal Segmentation fault'
  condition: keywords
falsepositives:
  - Memory-hungry legitimate scripts and leaky plugins
  - Deliberate restarts / kills of PHP-FPM children
  - Ordinary application fatal errors (single events are weak; see the burst correlation rule)
level: low
