CRITICALvulnerability·

CVE-2026-109618: PHP Memory Corruption Leads to Unauthenticated RCE

CVE-2026-109618 is a critical memory corruption vulnerability in PHP that allows unauthenticated remote code execution. The flaw stems from improper handling of out-of-memory errors, leaving request memory in an uninitialized state. Active exploitation has been observed, with various threat actors, including DPRK-linked groups and ransomware, leveraging this vulnerability.

This report was researched and drafted by an AI agent and reviewed by a human analyst prior to publication. View the agent workflow →
Indicators of Compromise(37)
↓ Download STIX
Domainp.2137gang.pl
Domainp.2137gang.st
Domainp.2137gang.store
Domainp.2137gang.shop
Domainp.2137gang.net
Domainproxy.identities.network
Domainproxies.identities.network
Domainproxy.insanitycpp.cx
Domainproxy.insanecppdev.com
Domainthunder.godofthunder.st
IP103.216.220.92
IP31.223.184.166
IP37.19.200.5
IP134.209.159.64
IP103.114.163.188
IP95.217.98.37
IP92.118.112.100
IP85.11.167.243
IP45.198.224.169
IP109.71.252.97
IP221.14.159.134
IP91.90.123.25
IP217.60.102.5
IP130.12.180.51
IP134.199.154.64
SHA2560c5486f06620e26e316f4b33f318b0d646d5e1133789331aa2fed012360d1486
SHA25643898a0a53bbd25d31ad9f5018ed3182be98a66109b22c9cab545a9fc447992a
SHA2567bc41ed79a9ae909927a9e40701736460a8cb70fca16ce1510e58677aca764b6
SHA256150ae88f0999032e2a6113501d6082f54a3ed98d02427b21a96e773a27d7bf16
SHA25640caf199ca1ebe056a74427f8e9db06c66899e33ae09c0ec2769ec70bf6dd8e7
SHA25627d926a6708d6769d97d065e7a5a860ab496eab272c03d1cebc55ec71b954fa2
SHA2561485e14e0f62bc94664eec341cabd275dad7d30b1d496c40ec340c9a0d9f0ba8
URLhttps://217.60.102.5/sh
URLhttps://217.60.103.56/sh
URLhttp://92.118.112.100/nfs
URLhttp://92.118.112.100/s
URLhttp://hackattackkaboom.botlesscucks.st/x86_64

Overview

This report details CVE-2026-109618, a critical memory corruption vulnerability in PHP that enables unauthenticated remote code execution. The flaw stems from improper handling of out-of-memory errors, leaving request memory in an uninitialized state. Active exploitation has been observed, with threat actors leveraging this vulnerability to deploy various malware families and establish persistence.

Technical Analysis

The vulnerability, CVE-2026-109618, is an out-of-memory (OOM) corruption flaw in PHP. It occurs because PHP uses longjmp() to exit the current context during OOM errors, but some contexts fail to properly account for this, leaving request memory uninitialized. Subsequent request cleanup procedures can then read or branch on this uninitialized memory, leading to remote code execution (RCE). The vulnerability is unauthenticated and can be triggered consistently via multiple OOM strategies.

  • CVSS 3.1 Score: 9.8 (CRITICAL) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
  • Weaknesses: CWE-416 (Use-After-Free), CWE-755 (Improper Handling of Exceptional Conditions), CWE-824 (Access of Uninitialized Pointer), CWE-1325 (Uninitialized Memory in PHP).
  • Affected PHP versions:
    • php >= 7.3.0 < 8.2.35
    • php >= 8.3.0 < 8.3.36
    • php >= 8.4.0 < 8.4.27
    • php >= 8.5.0 < 8.5.12
  • Affected products also include:
    • siemens ruggedcom_ape1808_firmware
    • paloaltonetworks pan-os >= 10.2.0 < 10.2.7
    • paloaltonetworks pan-os 10.2.7
    • paloaltonetworks pan-os 10.2.8
    • paloaltonetworks pan-os 10.2.9
    • paloaltonetworks pan-os 10.2.10

Detection

  • Monitor web server access logs for unusual request patterns, especially those that might trigger OOM conditions or attempt to execute arbitrary commands. Look for abnormally long or malformed requests.
  • Monitor for unexpected child processes spawned by web server processes (e.g., httpd.exe, nginx.exe, php-fpm.exe, php.exe). Look for cmd.exe, powershell.exe, sh, bash, python.exe, or other scripting interpreters.
  • Look for suspicious file writes in web-accessible directories, such as .php files with obfuscated content or known webshell signatures, originating from web server processes.
  • Analyze system logs for php process crashes or abnormal memory usage spikes followed by suspicious process activity.
  • Hunt for network connections initiated by the web server process to unusual external IP addresses or domains, indicative of C2 communication or data exfiltration.

Sigma Detection Rules

⚠️ AI-generated detection rules. These are experimental starting points. Review field names, EventIDs, and logic against your environment’s schema before deploying. Tune to reduce false positives.

Windows Web Server Spawning Shell

title: Windows Web Server Spawning Shell
id: 9a3e2f1a-b1c7-4d8e-a0b1-c74d8ea0b1c7
status: experimental
description: Detects suspicious shell process creation by common Windows web server processes, indicative of RCE.
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    ParentImage|endswith:
      - '\inetinfo.exe'
      - '\httpd.exe'
      - '\nginx.exe'
      - '\php-cgi.exe'
      - '\php-fpm.exe'
    Image|endswith:
      - '\cmd.exe'
      - '\powershell.exe'
      - '\pwsh.exe'
  condition: selection
level: high

Linux Web Server Spawning Shell

title: Linux Web Server Spawning Shell
id: 8b2d1e0a-a0b1-4c7d-8e9f-a0b1c74d8e9f
status: experimental
description: Detects suspicious shell process creation by common Linux web server processes, indicative of RCE.
logsource:
  product: linux
  service: auditd
detection:
  selection:
    ParentProcessName:
      - 'apache2'
      - 'httpd'
      - 'nginx'
      - 'php-fpm'
      - 'php-cgi'
    ProcessName:
      - 'sh'
      - 'bash'
      - 'dash'
      - 'zsh'
      - 'python'
      - 'perl'
      - 'php'
  condition: selection
level: high

PHP Process Outbound Network Connection

title: PHP Process Outbound Network Connection
id: 7c1f0d9a-9f8e-4b6c-7d5a-9f8e4b6c7d5a
status: experimental
description: Detects outbound network connections initiated by PHP processes to non-standard ports or external IPs, potentially indicating C2 or data exfiltration after RCE.
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    EventID: 3
    Image|endswith:
      - '\php.exe'
      - '\php-cgi.exe'
      - '\php-fpm.exe'
    DestinationPort|!in:
      - 80
      - 443
    DestinationIp|!in:
      - '127.0.0.1'
      - '::1'
      - '10.0.0.0/8'
      - '172.16.0.0/12'
      - '192.168.0.0/16'
  condition: selection
level: medium

Mitigations

  1. Patch PHP installations immediately. Upgrade to the latest patched versions: PHP 8.2.35, PHP 8.3.36, PHP 8.4.27, PHP 8.5.12, or newer.
  2. Apply available patches for affected products such as Siemens RUGGEDCOM APE1808 firmware and Palo Alto Networks PAN-OS.
  3. Implement a Web Application Firewall (WAF) to detect and block malicious request patterns targeting PHP vulnerabilities.
  4. Restrict outbound network connectivity from web servers to only necessary services and destinations.
  5. Employ Endpoint Detection and Response (EDR) solutions to monitor for suspicious process creation and file modifications on web servers.

References

  • https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w
  • http://www.openwall.com/lists/oss-security/2026/10/21/6
  • http://www.openwall.com/lists/oss-security/2026/10/23/5
  • https://cert-portal.siemens.com/productcert/html/ssa-566512.html
  • https://www.wiz.io/blog/php2shell-php-rce
  • https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/
  • https://hunt.io/blog/php2shell-cve-2026-109618-109619-open-directories
  • https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/
  • https://www.vulncheck.com/blog/php2shell-vulnerabilities
  • https://socradar.io/blog/inc-gentlemen-ransomware-ai-infrastructure
  • https://www.huntress.com/blog/amazon-clickfix-finger
  • https://unit42.paloaltonetworks.com/ai-assisted-cybercrime-analysis/
  • https://www.security.nl/posting/959207/Amerikaanse+overheid+waarschuwt+voor+misbruik+van+PHP2Shell-lekken?channel=rss

Indicators of Compromise

Type Value Description
SHA256 0c5486f06620e26e316f4b33f318b0d646d5e1133789331aa2fed012360d1486 PHP2Shell second-stage ELF x86-64 binary hash (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
SHA256 1485e14e0f62bc94664eec341cabd275dad7d30b1d496c40ec340c9a0d9f0ba8 Hash of follow-up POST request body (via https://www.vulncheck.com/blog/php2shell-vulnerabilities)
SHA256 150ae88f0999032e2a6113501d6082f54a3ed98d02427b21a96e773a27d7bf16 Hash of uploaded file part ‘a’ (via https://www.vulncheck.com/blog/php2shell-vulnerabilities)
SHA256 27d926a6708d6769d97d065e7a5a860ab496eab272c03d1cebc55ec71b954fa2 Hash of uploaded file part ‘b’ (via https://www.vulncheck.com/blog/php2shell-vulnerabilities)
SHA256 40caf199ca1ebe056a74427f8e9db06c66899e33ae09c0ec2769ec70bf6dd8e7 Hash of uploaded file part ‘a’ (via https://www.vulncheck.com/blog/php2shell-vulnerabilities)
SHA256 43898a0a53bbd25d31ad9f5018ed3182be98a66109b22c9cab545a9fc447992a PHP2Shell scanner/OOM-tool HTTP request body hash (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
SHA256 7bc41ed79a9ae909927a9e40701736460a8cb70fca16ce1510e58677aca764b6 PHP2Shell scanner/OOM-tool HTTP request body hash (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 103.114.163.188 PHP2Shell-associated anonymisation network IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 103.216.220.92 PHP2Shell-associated anonymisation network IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 109.71.252.97 PHP2Shell scanner/exploitation IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 130.12.180.51 RedTail · confidence 75% · first seen 2026-10-23
IP Address 134.199.154.64 Mirai · confidence 75% · first seen 2026-10-22
IP Address 134.209.159.64 PHP2Shell-associated anonymisation network IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 217.60.102.5 RedTail · confidence 100% · first seen 2026-10-23
IP Address 221.14.159.134 Exploitation attempt IP for CVE-2026-109618 (via https://www.vulncheck.com/blog/php2shell-vulnerabilities)
IP Address 31.223.184.166 PHP2Shell-associated anonymisation network IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 37.19.200.5 PHP2Shell-associated anonymisation network IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 45.198.224.169 PHP2Shell scanner/exploitation IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 85.11.167.243 PHP2Shell scanner/exploitation IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 91.90.123.25 Verification IP for CVE-2026-109618 (via https://www.vulncheck.com/blog/php2shell-vulnerabilities)
IP Address 92.118.112.100 PHP2Shell second-stage payload staging host IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
IP Address 95.217.98.37 PHP2Shell-associated anonymisation network IP (via https://www.cyfirma.com/research/cyfirma-threat-advisory-suspected-dprk-campaign-staging-php2shell-targeting-against-glocal-php-infrastructure/)
Domain p.2137gang.net RedTail · confidence 100% · first seen 2026-10-23
Domain p.2137gang.pl RedTail · confidence 100% · first seen 2026-10-23
Domain p.2137gang.shop RedTail · confidence 100% · first seen 2026-10-23
Domain p.2137gang.st RedTail · confidence 100% · first seen 2026-10-23
Domain p.2137gang.store RedTail · confidence 100% · first seen 2026-10-23
Domain proxies.identities.network RedTail · confidence 100% · first seen 2026-10-23
Domain proxy.identities.network RedTail · confidence 100% · first seen 2026-10-23
Domain proxy.insanecppdev.com RedTail · confidence 100% · first seen 2026-10-23
Domain proxy.insanitycpp.cx RedTail · confidence 100% · first seen 2026-10-23
Domain thunder.godofthunder.st Mirai · confidence 90% · first seen 2026-10-22
URL http://92.118.112.100/nfs Mirai · confidence 100% · first seen 2026-10-22
URL http://92.118.112.100/s Mirai · confidence 100% · first seen 2026-10-22
URL http://hackattackkaboom.botlesscucks.st/x86_64 Mirai · confidence 100% · first seen 2026-10-22
URL https://217.60.102.5/sh RedTail · confidence 100% · first seen 2026-10-23
URL https://217.60.103.56/sh RedTail · confidence 100% · first seen 2026-10-23

MITRE ATT&CK

🤖 AI Attribution
Generated by gemini-2.5-flash ·
2,689 input / 2,444 output tokens ·
Reviewed and approved by a human analyst before publication
#vulnerability#critical#dprk#memory-corruption#php#ransomware#rce#vulnerability#web-application#webshell