A FAIR (Factor Analysis of Information Risk) model of PHP2Shell, the two critical PHP RCEs disclosed on Oct 21 (out-of-memory corruption and stale global state; fixed in 8.2.35, 8.3.36, 8.4.27, 8.5.12), built on the incident in a widely shared post about one company's emergency patch day. The company is a stand-in for a typical mid-size estate. Every number below is an editable estimate, simulated 20,000 times, so the output is a range of yearly losses, never a single figure.
Each scenario's annualized loss exposure (ALE): the mean yearly loss across the simulation, with the 10th to 90th percentile range under it.
The chance that a year's losses exceed a given amount. Curves further right and higher mean more risk. The dashed line is the one-time cost to find and patch everything.
Range of yearly loss per scenario: bar is the 10th to 90th percentile, dot is the median, tick is the mean. Log scale.
How each scenario's risk breaks down. Loss event frequency is how often an attack succeeds; loss magnitude is what each success costs. Values are simulation means.
Finance's question from the post. Attacks spike right after a public exploit, so each day of delay in the first weeks carries more than an average day's risk. Move the sliders to compare.
Each detail in the post maps to one FAIR factor and moves one estimate.
| In the post | FAIR factor | Effect on the estimate |
|---|---|---|
| Inventory said 12 PHP servers; the real count was unknown | Contact frequency | Wide threat-event range; unknown hosts are exposed and unwatched |
| A PHP 5.6 box and a PHP 5.4 box with 4,512 days of uptime | Resistance strength | No vendor fix exists for 5.x, so these stay vulnerable after patch day (Scenario B) |
| The legacy box nobody may touch runs payroll exports | Secondary loss | A compromise exposes employee PII: notification, legal and regulatory cost |
| Blocking the oldest box stops warehouse shipping labels | Primary loss: productivity | An outage or rebuild halts fulfilment; also blocks the obvious fix |
| The documented owner left in 2019 | Control strength | No one to approve changes, so remediation is slow |
| Marketing kept the campaign site up for another hour | Exposure window | Modelled in the cost-of-waiting calculator |
| Patching took 4 hours; finding the PHP took 11 | Response cost | The dashed reference line on the loss-exceedance chart |
Calibrated ranges: minimum, most likely, maximum, sampled as PERT distributions. Edit any value and re-run. These are illustrative; replace them with your organisation's figures.
| Factor | Min | Most likely | Max | Basis |
|---|
Shared across scenarios: one-time response cost of finding and patching (15 people × 15 hours × $120, plus an hour of campaign-site downtime) is estimated at $25k / $35k / $60k.
| Input | Evidence | Confidence |
|---|---|---|
| Vulnerability (exploit success) | The PHP project confirmed both CVEs (GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp) and validated unauthenticated RCE against Apache mod_php with default limits. Wiz showed RCE on current WordPress, Drupal and Joomla images. Per-attempt success stays modest: more workers and unrelated traffic raise the attempts needed, and FPM has no complete public exploit. | medium · vendor-confirmed |
| Threat event frequency | Our honeypot runs a PHP lure and tags every exploit attempt (cve_hunt). Its first attempt arrived 37 minutes after the advisory; 19 attempts from 2 sources on disclosure day, against 302 ordinary .php requests. Re-calibrate this range from the tracker's time-to-exploit as data arrives. | medium · live data |
| Legacy 5.x exposure | Wiz reports affected code back to PHP 5.4; NVD lists only 8.2 to 8.5. PHP 5.x and 7.x are end-of-life, so no fix will ship. Only configuration and network controls apply. | high |
| Loss magnitude | Industry ranges for incident response, rebuild, a fulfilment outage, and a payroll-PII notification event at a mid-size company. | medium · generic |
memory_limit=-1 administratively and restart workers. It removes the predictable limit the confirmed exploit needs. Not complete: a failed mmap() can still reach the bad path, and RLIMIT_AS / RLIMIT_DATA make it worse.php_value settings in .htaccess (mod_php) and PHP_VALUE passed by the frontend (FPM) are the confirmed trigger for CVE-2026-109619.Scenario C models controls 2 to 4 together on the legacy hosts, which cannot take control 1. The gap between B and C is the value of doing them this week.