Back to Intelligence

Oracle Linux 8 PHP 7.4 Unauthenticated RCE Patch (ELSA-2026-100991): Detection and Remediation Guide

SA
Security Arsenal Team
November 27, 2026
12 min read

Oracle has released ELSA-2026-100991, a security update for PHP 7.4 on Oracle Linux 8 that fixes an unauthenticated remote code execution vulnerability, alongside other threats addressed in the same package set. Updated RPMs are available now through the Unbreakable Linux Network (ULN). If you run PHP 7.4 workloads on Oracle Linux 8 — particularly anything reachable from the internet — this is a patch-now event, not a patch-next-cycle event.

Unauthenticated RCE in a web runtime is the worst-case category of web vulnerability. There are no credentials to steal, no session to hijack, no user to phish. Any attacker who can reach your PHP endpoint can potentially execute arbitrary code with the privileges of the web server or PHP-FPM worker. Historically, this class of bug in PHP has been weaponized within days of disclosure — scanned for en masse, exploited for webshell deployment, cryptomining, and initial access brokerage. Assume your public-facing PHP hosts are being probed already.

Technical Analysis

What was released

Per the advisory (Oracle Linux 8 ELSA-2026-100991), updated PHP 7.4 RPMs for Oracle Linux 8 have been uploaded to the Unbreakable Linux Network. The advisory addresses an unauthenticated code execution vulnerability plus additional threats in the same update stream.

Affected systems

  • OS: Oracle Linux 8 (all minor releases consuming PHP from the ULN/AppStream channels)
  • Runtime: PHP 7.4 packages (core php, php-fpm, php-cli, php-common, and associated modules such as php-gd, php-mysqlnd, php-xml, php-mbstring)
  • Deployment patterns at highest risk:
    • Apache httpd with mod_php or proxying to php-fpm
    • NGINX with php-fpm (FastCGI)
    • CMS platforms (WordPress, Drupal, Joomla), custom applications, and legacy internal tooling exposed to broad network segments

A note on lifecycle: PHP 7.4 reached upstream end-of-life in November 2022. Oracle continues to ship security fixes for it as part of Oracle Linux 8 support, which is exactly what ELSA-2026-100991 represents. If you are running PHP 7.4 in 2026, you are entirely dependent on your distribution vendor for security coverage — there is no upstream safety net. That dependency makes prompt application of vendor errata non-negotiable, and it should also feed a migration plan to a currently supported PHP branch.

How the attack works (defender's view)

Unauthenticated code execution in PHP typically materializes in one of these shapes:

  1. Direct exploitation of the runtime/parser flaw — a crafted HTTP request (headers, query string, POST body, or file upload multipart data) triggers the vulnerable code path in PHP itself, causing command execution inside the PHP worker process.
  2. Exploitation through an application entry point — the flaw is reachable through any PHP script that processes attacker-controlled input in the affected way, meaning every PHP endpoint on the server is a potential trigger, not just one vulnerable page.

Regardless of the exact trigger, the post-exploitation behavior is remarkably consistent and that is where defenders should focus:

  • The web server process (httpd, nginx) or php-fpm pool worker spawns a shell or command interpreter (/bin/sh, /bin/bash, python, perl, curl, wget) — this is abnormal in virtually every production web workload.
  • A webshell is written into the document root or an uploads directory (a new or recently modified .php file containing system(, exec(, shell_exec(, passthru(, eval(, or base64_decode().
  • Outbound connections originate from the web tier to attacker infrastructure for payload staging or C2 — often on non-standard ports or to hosts with no business relationship to the application.
  • Persistence is established via cron entries, systemd units, or modifications to legitimate PHP files that get executed on every request.

Exploitation status

As of publication, the advisory does not document confirmed in-the-wild exploitation, and no public proof-of-concept has been tied to this specific Oracle errata. Treat that as a timing advantage, not reassurance. Unauthenticated RCE in a ubiquitous web runtime is precisely the class of vulnerability that mass-scanning operators and initial access brokers prioritize. The window between patch availability and opportunistic exploitation for PHP-class bugs is routinely measured in days. Patch during your next maintenance window at the latest — and hunt for compromise on any host that was exposed before patching.

Detection & Response

The detections below target the reliable post-exploitation behaviors of any PHP unauthenticated RCE: a web server or PHP-FPM worker spawning a shell, and webshell artifacts on disk. These are high-fidelity in most environments — production web workers essentially never legitimately execute /bin/bash -c or write new PHP files outside of a deployment pipeline.

Sigma Rules

YAML
---
title: Web Server or PHP-FPM Spawning Shell or Command Interpreter
id: 3f8a1c94-2b7d-4e61-9a05-c6d8e2f41a73
status: experimental
description: Detects httpd, nginx, or php-fpm spawning a shell or common post-exploitation tools, a strong indicator of PHP code execution exploitation on Linux web servers.
references:
  - https://linuxsecurity.com/advisories/oracle/oracle8-elsa-2026-100991-php
  - https://attack.mitre.org/techniques/T1059/004/
  - https://attack.mitre.org/techniques/T1190/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.initial_access
  - attack.t1190
  - attack.execution
  - attack.t1059.004
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/httpd'
      - '/nginx'
      - '/php-fpm'
      - '/php-fpm7.4'
      - '/apache2'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/zsh'
      - '/python'
      - '/python3'
      - '/perl'
      - '/curl'
      - '/wget'
      - '/nc'
      - '/ncat'
      - '/base64'
  condition: selection_parent and selection_child
falsepositives:
  - Legitimate application functionality that shells out (image processing, PDF generation) — tune by child image and command line per application baseline
  - Monitoring or health-check scripts invoked by the web stack
level: high
---
title: Webshell Artifact Created in Web Root or Uploads Directory
id: 8c2e5b17-6f49-4d83-b1a2-7e9d3c05f684
status: experimental
description: Detects creation of PHP files in web-accessible or upload directories by non-deploy processes, consistent with webshell deployment following PHP remote code execution.
references:
  - https://linuxsecurity.com/advisories/oracle/oracle8-elsa-2026-100991-php
  - https://attack.mitre.org/techniques/T1505/003/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: file_event
  product: linux
detection:
  selection_path:
    TargetFilename|contains:
      - '/var/www/'
      - '/usr/share/nginx/'
      - '/srv/www/'
      - '/wp-content/uploads/'
      - '/uploads/'
      - '/tmp/'
      - '/var/tmp/'
  selection_ext:
    TargetFilename|endswith:
      - '.php'
      - '.phtml'
      - '.phar'
      - '.php7'
  filter_deploy_user:
    User|contains:
      - 'deploy'
      - 'jenkins'
      - 'ci-'
  condition: selection_path and selection_ext and not filter_deploy_user
falsepositives:
  - Deployment pipelines and CI/CD writing application code — exclude known deploy accounts and paths
  - CMS plugin/theme updates (WordPress admin actions) — baseline per application
level: high
---
title: Outbound Network Connection from PHP-FPM or Web Server Process
id: b17d4e60-93a5-4f28-ac91-5d2e8b36c107
status: experimental
description: Detects outbound connections initiated directly by php-fpm, httpd, or nginx worker processes to non-standard ports, consistent with payload retrieval or C2 after PHP code execution.
references:
  - https://linuxsecurity.com/advisories/oracle/oracle8-elsa-2026-100991-php
  - https://attack.mitre.org/techniques/T1071/001/
  - https://attack.mitre.org/techniques/T1105/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.command_and_control
  - attack.t1071.001
  - attack.t1105
logsource:
  category: network_connection
  product: linux
detection:
  selection:
    Image|endswith:
      - '/php-fpm'
      - '/php-fpm7.4'
      - '/httpd'
      - '/nginx'
  filter_common:
    DestinationPort:
      - 80
      - 443
  condition: selection and not filter_common
falsepositives:
  - Applications making legitimate API calls on non-standard ports — baseline destination hosts per application
  - Health checks and service discovery traffic
level: medium

KQL (Microsoft Sentinel / Defender)

If you forward Linux auditd/Syslog into Sentinel (and you should, for every production web tier), the following hunts surface both the exploitation behavior and your unpatched exposure:

KQL — Microsoft Sentinel / Defender
// Hunt 1: Web server or PHP-FPM spawning shells/tools (Syslog from auditd execve)
Syslog
| where TimeGenerated > ago(14d)
| where SyslogMessage has_any ("php-fpm", "httpd", "nginx", "apache2")
| where SyslogMessage has_any ("/bin/sh", "/bin/bash", "/usr/bin/curl", "/usr/bin/wget", "nc -", "base64 -d")
| project TimeGenerated, Computer, ProcessName, SyslogMessage
| order by TimeGenerated desc;

// Hunt 2: Web worker spawning a child shell via Defender for Endpoint on Linux
DeviceProcessEvents
| where TimeGenerated > ago(14d)
| where InitiatingProcessFileName has_any ("php-fpm", "httpd", "nginx", "apache2")
| where FileName in~ ("sh", "bash", "dash", "python", "python3", "perl", "curl", "wget", "nc", "ncat")
| project TimeGenerated, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, AccountName
| order by TimeGenerated desc;

// Hunt 3: Fleet exposure — identify Oracle Linux 8 hosts still running vulnerable PHP 7.4 packages
// Requires package inventory via Syslog cron job or Defender for Endpoint software inventory
DeviceTvmSoftwareInventory
| where SoftwareName startswith "php"
| where SoftwareVersion startswith "7.4"
| summarize arg_max(TimeGenerated, *) by DeviceName, SoftwareName
| project DeviceName, SoftwareName, SoftwareVersion
| order by DeviceName asc;

// Hunt 4: New PHP files written under web roots (file integrity events forwarded as CEF/Syslog)
CommonSecurityLog
| where TimeGenerated > ago(7d)
| where Message has_all ("CREATED", ".php")
| where Message has_any ("/var/www/", "/usr/share/nginx/", "/wp-content/uploads/", "/uploads/")
| project TimeGenerated, SourceHostName, Message
| order by TimeGenerated desc;

Velociraptor VQL

Use this artifact for a rapid sweep across your Oracle Linux 8 web fleet — it pulls web-tier process trees, flagging workers with shell children and enumerating recently created or modified PHP files in document roots:

VQL — Velociraptor
-- Hunt: PHP RCE post-exploitation sweep on Oracle Linux 8 web tier
-- Part 1: Web/PHP processes with suspicious child processes
SELECT Pid, Ppid, Name, Exe, CommandLine, Username, CreateTime
FROM pslist()
WHERE Name =~ '^(sh|bash|dash|python3?|perl|curl|wget|nc|ncat)$'
  AND Ppid IN (
        SELECT Pid FROM pslist()
        WHERE Name =~ '(php-fpm|httpd|nginx|apache2)'
      )

-- Part 2: PHP files created or modified in the last 14 days under web roots
SELECT FullPath, Size, Mtime, Ctime
FROM glob(globs=[
  '/var/www/**/*.php',
  '/usr/share/nginx/**/*.php',
  '/var/www/**/uploads/*.php',
  '/tmp/*.php',
  '/var/tmp/*.php'
])
WHERE Mtime > now() - 1209600
ORDER BY Mtime DESC

Run Part 2 output against a known-good baseline or a hash allowlist from your last clean deployment — any .php file that does not match your deployed application code is a containment candidate.

Remediation and Verification Script

Bash / Shell
#!/usr/bin/env bash
# ELSA-2026-100991 - PHP 7.4 unauthenticated RCE remediation for Oracle Linux 8
# Run as root (or via sudo) on each OL8 host running PHP

set -euo pipefail

echo "=== [1/5] Current PHP package state ==="
rpm -qa | grep -E '^php' | sort
php -v 2>/dev/null || echo "php CLI not installed"

echo "=== [2/5] Checking for available security update (ELSA-2026-100991) ==="
dnf updateinfo list --security 2>/dev/null | grep -i php || echo "No php advisory visible - verify ULN channel subscription"

echo "=== [3/5] Applying PHP security update from ULN ==="
dnf clean all
dnf --enablerepo='*ol8*' update -y php\* || dnf update -y php\*

echo "=== [4/5] Restarting affected services ==="
for svc in php-fpm httpd nginx; do
  if systemctl is-active --quiet "$svc"; then
    systemctl restart "$svc"
    echo "Restarted: $svc"
  fi
done

echo "=== [5/5] Post-patch verification ==="
rpm -qa | grep -E '^php' | sort
php -v | head -1

echo ""
echo "=== Quick compromise check: PHP files modified in last 14 days under web roots ==="
find /var/www /usr/share/nginx /srv/www /tmp /var/tmp \
  -name '*.php' -mtime -14 -type f 2>/dev/null | head -50

echo ""
echo "=== Suspicious child processes of web workers (live) ==="
for pid in $(pgrep -f 'php-fpm|httpd|nginx' 2>/dev/null); do
  ps --ppid "$pid" -o pid,comm,args 2>/dev/null | grep -E 'sh|bash|curl|wget|python|perl|nc' || true
done

echo ""
echo "Done. Review the file list and process output above against your deployment baseline."

Remediation

  1. Patch immediately. Apply ELSA-2026-100991 across all Oracle Linux 8 systems with PHP 7.4 installed: dnf update -y php\* with your ULN channels enabled, then restart php-fpm and your web server. Verify with rpm -qa | grep ^php and confirm the updated build against the advisory listing on ULN or the Oracle Linux errata portal.
  2. Prioritize by exposure. Internet-facing PHP applications first, then DMZ, then internal. Anything fronted by a WAF still gets patched — a WAF rule for an unknown parser-level trigger is a guess, not a control.
  3. Hunt before and after patching. Patching closes the door but tells you nothing about whether someone already walked through it. Run the detection content above against at least 14 days of telemetry on every host that was exposed and unpatched. A webshell dropped last week survives tonight's dnf update.
  4. Reduce the attack surface. If a host does not need PHP, remove it (dnf remove php\*). If a vhost does not need PHP execution in an uploads directory, disable it (e.g., php_admin_flag engine off in Apache, or exclude the location from the FastCGI handler in NGINX). Block execution of PHP in any directory that accepts user uploads — this one hardening step neutralizes the majority of webshell follow-on behavior.
  5. Egress filtering on the web tier. Your web servers have a short, enumerable list of legitimate outbound destinations (package repos, specific APIs, payment gateways). Deny-by-default egress from the web VLAN breaks payload staging and C2 for most opportunistic exploitation.
  6. Plan the migration off PHP 7.4. PHP 7.4 has been upstream-EOL since 2022. Oracle's extended coverage is a safety net, not a strategy. Every month you remain on 7.4, your exposure is defined by how quickly you can apply vendor backports. Build the business case for migration to a supported PHP branch now, while this advisory is fresh in leadership's mind.
  7. Validate file integrity monitoring. Confirm FIM (AIDE, Tripwire, Wazuh, or equivalent) actually covers your document roots and upload directories. The detections above depend on seeing new PHP files where they don't belong.

The Bottom Line

ELSA-2026-100991 fixes an unauthenticated code execution vulnerability in a runtime that powers a significant share of the web. There is no mitigation shortcut that substitutes for the patch — apply it from ULN, restart the affected services, and then do the harder work: hunt for compromise that may have predated the fix, tighten egress and filesystem execution controls, and get the migration off PHP 7.4 funded. The organizations that get hurt by advisories like this one are rarely the ones that didn't know — they're the ones that patched the server and never checked whether the webshell was already there.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.