MarkRelayJuggling email for all your products and sites? Managing it in one place is simpler.Unlimited domainsUnlimited mailboxesTeam access controlMCP + SkillsWebmail + Broadcast + API + Webhook

Comparison

PHP2Shell vs Log4Shell

Both can allow unauthenticated remote code execution in widely used software. PHP2Shell’s demonstrated exploitability depends on the PHP build, SAPI and application path; inventory must include embedded runtimes as well as web servers.

Last reviewed 2026-10-28

PHP2ShellLog4Shell
What it isTwo memory-safety bugs in the PHP interpreterJNDI lookup injection in the Log4j 2 Java logging library
CVECVE-2026-109618, CVE-2026-109619CVE-2021-44228 (plus follow-ups)
Disclosed21 Oct 2026 (leaked 20 Oct)9 Dec 2021 (exploit public the same day)
ScoreCVSS 4.0 9.2CVSS 3.1 10.0
AuthenticationNoneNone
How hard to exploitHarder: crafted multipart requests, tuned to each target’s memory layout over repeated attemptsTrivial: one string such as ${jndi:ldap://…} anywhere that gets logged
ReachAny site on a vulnerable PHP — a large share of the webAny Java app logging attacker input with Log4j 2.0–2.14.1 — servers, appliances, games
Finding affected systemsCheck every runtime, container and vendor product that embeds PHP; one server version is not enoughHard: Log4j hid as a transitive dependency inside JARs and vendor products
FixUpdate PHP and restart workersUpgrade Log4j (several rounds: 2.15 → 2.16 → 2.17) and rebuild every affected app
Who fixes itWhoever runs the server: you, your host or cloud providerEvery vendor that bundled Log4j, plus everyone running those apps
AttacksAWS reports attempts from 17 Oct; success on real systems remains unverifiedMass exploitation within hours; listed in CISA KEV
Data theft without RCEYes — memory disclosure pathIndirectly (environment variables via DNS lookups)

Where they are alike

  • No login, no user interaction — just network requests.
  • Foundational software most owners never think about, so many systems will stay unpatched for a long time.
  • Application updates do not help; the vulnerable layer sits underneath.

Where they differ

  • Exploitation effort. Log4Shell was a copy-paste string; PHP2Shell is a memory-corruption chain that must be adapted per target. Expect fewer, more capable attackers at first — and broader abuse once reliable tooling spreads.
  • Inventory. Finding managed web runtimes can be straightforward, but appliances, panel engines and vendor products can hide additional PHP. Use the NCSC-NL inventory as a discovery aid and obtain vendor confirmation; there is no verified universal completion time.
  • Long tail. PHP’s long tail is shared hosting and abandoned servers on PHP 7.x and 8.0/8.1, which get no new release.

Questions

Is PHP2Shell as bad as Log4Shell?+

Both can cause unauthenticated remote code execution, but their mechanisms and deployment conditions differ. PHP2Shell’s reliability depends on the build, SAPI and reachable application paths. Check every runtime and embedded product; a comparison with Log4Shell does not establish exploitability or patch status for your system.

Do Log4j fixes or scanners help with PHP2Shell?+

No. They are unrelated: Log4Shell is in a Java logging library, PHP2Shell is in the PHP interpreter. Different scanners, different fixes.

Related