Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ versions, and the date the plugins were published) live in `profiles/php2shell.j
plugin feed 202610271613, Unix local detection didn't recognize PHP-FPM, so a host that
runs PHP only as PHP-FPM and was last scanned before then won't appear. If another tool
shows PHP on a host this check doesn't list, rescan that host with credentials.
- **Appliances that bundle PHP aren't listed**, such as F5 BIG-IP, because the PHP
inventory plugins don't detect them. Their own advisory plugins report PHP2Shell, and
- **Appliances that bundle PHP aren't listed**, such as F5 BIG-IP or NetScaler ADC and
Gateway, because the PHP inventory plugins don't detect them. Their own advisory plugins report PHP2Shell, and
any finding they produce is included. F5's plugin (372182) reports only when the scan's
report paranoia is set to Paranoid; the CSV and JSON reports show each host's setting.
- **Version grading is a guide.** Distro packages often carry backported fixes under an
Expand All @@ -198,13 +198,16 @@ versions, and the date the plugins were published) live in `profiles/php2shell.j

PHP2Shell coverage is evolving quickly. Tenable Research is still publishing plugins
(distro advisories, unpatched-package checks, and product-specific checks) and updating its
guidance, including recommended scan settings.
guidance, including recommended scan settings. By 2026-11-06, about 124 plugins covered
each CVE, all of them version-based; Tenable Research explains why it didn't release a
direct check in
[php2shell one week later](https://www.tenable.com/blog/php2shell-one-week-later-why-one-exploit-doesnt-work-everywhere).

- **New plugins for the two CVEs are picked up automatically.** Findings are collected by
CVE ID, not plugin ID.
- **Everything else is in `profiles/php2shell.json`:** the inventory plugins, the date the
plugins were published, the earliest plugin feed that can detect it, the fixed versions,
and the interim mitigations. They reflect coverage when this version was released.
and the interim mitigations. They reflect coverage and guidance as of 2026-11-06.
- **This tool will be updated as coverage evolves.** Run `git pull` in the skill folder
before each use while PHP2Shell is active, and check the releases page for changes.
- **Tenable's guidance comes first.** If it differs from this tool, follow the
Expand Down
4 changes: 2 additions & 2 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Checks that Tenable scanning is set up to detect PHP2Shell on every
license: MIT
metadata:
author: Lance Duvall
version: "1.1.0"
version: "1.2.0"
---

# PHP2Shell Coverage Check
Expand All @@ -24,7 +24,7 @@ a CVE finding.
**PHP2Shell coverage is evolving quickly.** Tenable Research keeps publishing plugins and
updating guidance. The CVE query picks up new plugins automatically; the profile
(`profiles/php2shell.json`) records the inventory plugins, dates, and fixed versions as of
this release and is updated as coverage changes. Point the user to the Tenable Research
2026-11-06 and is updated as coverage changes. Point the user to the Tenable Research
FAQ (linked in the profile) for current scan guidance.

This skill checks scan coverage. For an exposure report, a fix order, or a threat hunt, the
Expand Down
9 changes: 7 additions & 2 deletions profiles/php2shell.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"first_plugin_published": "2026-10-21",
"min_feed": "202610210000",
"recommended_feed": "202610240000",
"notes": "Plugin 369483 and the first distro checks were published on 2026-10-21. Distro, unpatched, and product checks were still being added on 2026-10-28, so a feed from 2026-10-21 to 2026-10-23 may lack many of them.",
"notes": "Plugin 369483 and the first distro checks were published on 2026-10-21. By 2026-11-06, about 124 plugins covered each CVE: distro checks for the major Linux distributions and FreeBSD, unpatched-package checks, product checks (F5 BIG-IP, PAN-OS, NetScaler ADC and Gateway, and Tenable Security Center), container and cloud checks, and Web App Scanning plugins 115719 to 115722. A feed from 2026-10-21 to 2026-10-23 lacks many of them, so rescan with a current feed. All of these checks are version-based: Tenable Research explains why it didn't release a direct check in its 2026-10-29 post.",
"detection_changes": [
{
"feed": "202610271613",
Expand Down Expand Up @@ -50,20 +50,25 @@
},
"earliest_affected": "5.4",
"first_unaffected_branch": "8.6",
"no_official_fix": "7.4 to 8.1 have only minimal source backports from the PHP security team; 7.3 and older are end-of-life."
"no_official_fix": "7.4 to 8.1 have only minimal source backports from the PHP security team; 7.3 and older are end-of-life. Tenable Research achieved code execution on PHP 7.4.33."
},
"mitigations": [
"Update PHP to 8.2.35, 8.3.36, 8.4.27, or 8.5.12, or apply your distribution's patched package. Updating is the only complete fix. Restart every PHP worker afterwards: updated packages don't patch running processes.",
"Until then: set memory_limit=-1 and keep post_max_size small (for example 8M, or 32M with uploads), set session.upload_progress.enabled=0, and on PHP 8.5 also fatal_error_backtraces=0. Set them in php.ini, the FPM pool, or the server configuration so applications can't override them, not with ini_set() or .user.ini, then restart every PHP worker. These reduce exposure but don't make an installation safe.",
"Don't use RLIMIT_AS or RLIMIT_DATA as a memory cap: they can trigger the vulnerable allocation failure. Use a container or cgroup limit instead.",
"PHP 8.1 and older have no official release: upgrade, use a distribution or LTS vendor fix, or isolate the system.",
"Fix in order of exposure: first internet-facing network appliances and their management interfaces, and end-of-life PHP; then the rest of your PHP hosts on your normal schedule for critical fixes. For appliances, PHP version numbers don't apply: use the vendor's fixed build.",
"PHP 8.4.27 and 8.5.12 can crash some applications that use SimpleXML (php-src #24488, a separate change). Test before rolling out, and check php.net for the follow-up release."
],
"references": [
{
"title": "Tenable Research PHP2Shell FAQ",
"url": "https://www.tenable.com/blog/php2shell-cve-2026-109618-cve-2026-109619-frequently-asked-questions-about-critical-php-remote"
},
{
"title": "Tenable Research: php2shell one week later",
"url": "https://www.tenable.com/blog/php2shell-one-week-later-why-one-exploit-doesnt-work-everywhere"
},
{
"title": "PHP security advisory (CVE-2026-109618)",
"url": "https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "php2shell-coverage-check"
version = "1.0.0"
version = "1.2.0"
description = "Find the hosts where a 'no PHP2Shell finding' result from Tenable can't be trusted."
license = "MIT"
license-files = ["LICENSE"]
Expand Down
11 changes: 6 additions & 5 deletions references/verdicts.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ Each host gets exactly one verdict, checked in this order. The first that applie

An open (or reopened) finding from **any** plugin for CVE-2026-109618 or CVE-2026-109619:
the version check (369483), distro advisory plugins, "unpatched" plugins, or product
plugins for products that bundle PHP, such as F5 BIG-IP, PAN-OS, and Tenable Security
Center.
plugins for products that bundle PHP, such as F5 BIG-IP, PAN-OS, NetScaler ADC and
Gateway, and Tenable Security Center.

- **Action:** update PHP, or apply the vendor's patched package. Until then, apply the
interim mitigations and consider isolating internet-facing hosts.
interim mitigations and consider isolating internet-facing hosts. Fix internet-facing
appliances, their management interfaces, and end-of-life PHP first.
- Notes are left out: a plugin has already decided.

## likely-vulnerable
Expand Down Expand Up @@ -69,8 +70,8 @@ Notes don't change the verdict, but always pass them on:
- Hosts where Tenable never detected PHP. Inventory plugins can miss some installs, so if
another tool shows PHP on a host the check doesn't list, rescan it with credentials. Until
feed 202610271613, a Unix host that runs PHP only as PHP-FPM wasn't detected at all.
- Appliances that bundle PHP, such as F5 BIG-IP, because the PHP inventory plugins don't
detect them. Their advisory plugins still report PHP2Shell, and those findings appear;
- Appliances that bundle PHP, such as F5 BIG-IP or NetScaler ADC and Gateway, because the
PHP inventory plugins don't detect them. Their advisory plugins still report PHP2Shell, and those findings appear;
F5's (372182) reports only when the scan's report paranoia is set to Paranoid. The
`report_paranoia` column in the CSV and JSON reports shows each host's last setting.
- PHP inside containers or images that these plugins don't scan. Use Tenable Cloud
Expand Down
2 changes: 1 addition & 1 deletion scripts/coverage_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from pathlib import Path
from typing import Any, Iterable

VERSION = '1.1.0'
VERSION = '1.2.0'
TOOL = 'php2shell-coverage-check'
HERE = Path(__file__).resolve().parent
DEFAULT_PROFILE = HERE.parent / 'profiles' / 'php2shell.json'
Expand Down
Loading