# PHP2Shell 9.2 CVE published today

**URL:** https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668
**Category:** Security
**Created:** [October 21, 2026, 3:52pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668 "2026-10-21T15:52:48Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![oskardotglobal](https://discourse.nixos.org/user_avatar/discourse.nixos.org/oskardotglobal/32/29872_2.png) [@oskardotglobal](https://discourse.nixos.org/u/oskardotglobal)
#### Post date: [October 21, 2026, 3:52pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/1 "2026-10-21T15:52:48Z")

</div>

Today, the patches for two 9.2 CVEs in PHP 5-8 called [https://en.wikipedia.org/wiki/PHP2Shell](https://php2shell) were published. Is there any progress of getting them into Nixpkgs?

---

<div class="post-metadata">

### Author: ![hansemschnokeloch](https://discourse.nixos.org/user_avatar/discourse.nixos.org/hansemschnokeloch/32/7668_2.png) [@hansemschnokeloch](https://discourse.nixos.org/u/hansemschnokeloch)
#### Post date: [October 21, 2026, 3:58pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/2 "2026-10-21T15:58:45Z")

</div>

Relevant PR is merged

[https://github.com/NixOS/nixpkgs/pull/576853](https://github.com/NixOS/nixpkgs/pull/576853)

---

<div class="post-metadata">

### Author: ![oskardotglobal](https://discourse.nixos.org/user_avatar/discourse.nixos.org/oskardotglobal/32/29872_2.png) [@oskardotglobal](https://discourse.nixos.org/u/oskardotglobal)
#### Post date: [October 21, 2026, 5:54pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/3 "2026-10-21T17:54:50Z")

</div>

Somehow didn‘t find that, thanks 🙂

---

<div class="post-metadata">

### Author: ![pr06lefs](https://discourse.nixos.org/user_avatar/discourse.nixos.org/pr06lefs/32/2729_2.png) [@pr06lefs](https://discourse.nixos.org/u/pr06lefs)
#### Post date: [October 21, 2026, 8:46pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/4 "2026-10-21T20:46:31Z")

</div>

so I see that the PR is in master. cool.

I’m on 26.05. I’ve shut down my nextcloud for now. How should I go about getting this on my system?

Could just wait until those commits appear in [26.05](https://github.com/NixOS/nixpkgs/commits/nixos-26.05). I assume that means that updating my system then will pull in the new stuff. When should we expect that to happen? A few hours, or a few days maybe?

There’s also this pkgs.applyPatches. Not quite sure where its supposed to go (wiki is down!), but here it is with the three php commits I found in master. Better just to wait on 26.05 to update?

```auto
              applyPatches {
                src = pkgs.path;
                patches = [
                  (pkgs.fetchpatch {
                    url = "https://github.com/NixOS/nixpkgs/commit/81513f364091c759812f716cef3c175109d07342.patch";
                    sha256 = "81513f364091c759812f716cef3c175109d07342";
                  })
                  (pkgs.fetchpatch {
                    url = "https://github.com/NixOS/nixpkgs/commit/ee62357e90778a37aa7aa4a646e7ccd4fdb643b3.patch";
                    sha256 = "ee62357e90778a37aa7aa4a646e7ccd4fdb643b3";
                  })
                  (pkgs.fetchpatch {
                    url = "https://github.com/NixOS/nixpkgs/commit/81513f364091c759812f716cef3c175109d07342.patch";
                    sha256 = "8122eb15f960d1e04ab982e4ee971c374133a1e8";
                  })
                ];
              };

```

---

<div class="post-metadata">

### Author: ![pr06lefs](https://discourse.nixos.org/user_avatar/discourse.nixos.org/pr06lefs/32/2729_2.png) [@pr06lefs](https://discourse.nixos.org/u/pr06lefs)
#### Post date: [October 21, 2026, 10:01pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/5 "2026-10-21T22:01:28Z")

</div>

Currently using this:

> [@PHP CVE-2026-109618 and CVE-2026-109619](https://discourse.nixos.org/t/php-cve-2026-109618-and-cve-2026-109619/80667/5):
>
> You can also apply an overlay that grabs the source directly from [php.net](http://php.net) until the packages land in nixpkgs: [NixOS: Quick fix for PHP CVE-2026-109618 and CVE-2026-109619 | gbyte](https://gbyte.dev/blog/nixos-quick-fix-php-cve-2026-109618-and-cve-2026-109619)

---

<div class="post-metadata">

### Author: ![HammeredShip](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/h/85f322/32.png) [@HammeredShip](https://discourse.nixos.org/u/HammeredShip)
#### Post date: [October 21, 2026, 10:41pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/6 "2026-10-21T22:41:03Z")

</div>

The update broke the fileinfo extension. This overlay fixes it:

```auto
            (final: prev: {
              php84Extensions.fileinfo = prev.php84Extensions.fileinfo.overrideAttrs {
                postConfigure = ''substituteInPlace tests/bug68996.phpt --replace-fail "No such file or directory in" "Invalid or incomplete multibyte or wide character in"'';
              };
            })

```

---

<div class="post-metadata">

### Author: ![vcunat](https://discourse.nixos.org/user_avatar/discourse.nixos.org/vcunat/32/11_2.png) [@vcunat](https://discourse.nixos.org/u/vcunat)
#### Post date: [October 22, 2026, 6:04am UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/7 "2026-10-22T06:04:19Z")

</div>

`nixos-26.05` has this update now (among others).

---

<div class="post-metadata">

### Author: ![aiono](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aiono](https://discourse.nixos.org/u/aiono)
#### Post date: [October 22, 2026, 8:47am UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/8 "2026-10-22T08:47:14Z")

</div>

[NixOS Search](https://search.nixos.org/packages?channel=26.05&query=php#show=php83) still shows unpatched version (for example 8.3.35 not 8.3.36). Does it get reflected there later?

---

<div class="post-metadata">

### Author: ![raboof](https://discourse.nixos.org/user_avatar/discourse.nixos.org/raboof/32/1681_2.png) [@raboof](https://discourse.nixos.org/u/raboof)
#### Post date: [October 22, 2026, 9:48am UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/9 "2026-10-22T09:48:48Z")

</div>

that information can be slightly stale sometimes (hours, rarely days)

---

<div class="post-metadata">

### Author: ![hansemschnokeloch](https://discourse.nixos.org/user_avatar/discourse.nixos.org/hansemschnokeloch/32/7668_2.png) [@hansemschnokeloch](https://discourse.nixos.org/u/hansemschnokeloch)
#### Post date: [October 22, 2026, 12:59pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/10 "2026-10-22T12:59:11Z")

</div>

> [@aiono](#):
>
> [NixOS Search](https://search.nixos.org/packages?channel=26.05&query=php#show=php83) still shows unpatched version (for example 8.3.35 not 8.3.36)

You can see which commit the data from `nixos search` comes from

 ![NixOS-Search-Packages-php](https://discourse.nixos.org/uploads/default/original/3X/f/f/ff2ee68e9911b2aaa06f3a7f97fd02ed08c15859.png)

---

<div class="post-metadata">

### Author: ![TLATER](https://discourse.nixos.org/user_avatar/discourse.nixos.org/tlater/32/4257_2.png) [@TLATER](https://discourse.nixos.org/u/TLATER)
#### Post date: [October 22, 2026, 1:58pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/11 "2026-10-22T13:58:07Z")

</div>

That’s surprisingly fast, has something changed about the build process or is php simply leafy enough as an interpreted language that the mass rebuilds go quick? Normally this takes days or weeks, not a few hours.

For others in the thread, the `nixos-small` channels are also a nice escape hatch (in fact, the intended one) for when you need to apply a patch fast, they’re usually updated _very_ quickly because only a small scope of packages are built. That way you don’t have to faff with semi-manual patches.

---

<div class="post-metadata">

### Author: ![QuBe](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/q/ea666f/32.png) [@QuBe](https://discourse.nixos.org/u/QuBe)
#### Post date: [October 22, 2026, 2:17pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/12 "2026-10-22T14:17:40Z")

</div>

> [@vcunat](#):
>
> `nixos-26.05` has this update now (among others).

Wait, does it ?

> [@PHP CVE-2026-109618 and CVE-2026-109619](https://discourse.nixos.org/t/php-cve-2026-109618-and-cve-2026-109619/80667/10):
>
> To get news on when the patch will be upstream: [Nixpkgs Tracker](https://track.nix.ee/?pr=576853)

That link says no

---

<div class="post-metadata">

### Author: ![vcunat](https://discourse.nixos.org/user_avatar/discourse.nixos.org/vcunat/32/11_2.png) [@vcunat](https://discourse.nixos.org/u/vcunat)
#### Post date: [October 22, 2026, 2:37pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/13 "2026-10-22T14:37:37Z")

</div>

That’s the PR for master/unstable. For 26.05 you need to use [Nixpkgs Tracker](https://track.nix.ee/?pr=576865)

---

<div class="post-metadata">

### Author: ![vcunat](https://discourse.nixos.org/user_avatar/discourse.nixos.org/vcunat/32/11_2.png) [@vcunat](https://discourse.nixos.org/u/vcunat)
#### Post date: [October 22, 2026, 2:38pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/14 "2026-10-22T14:38:55Z")

</div>

Few packages in nixpkgs depend on PHP. But that’s nothing to do with being interpreted. Python is a huge rebuild, for example.

---

<div class="post-metadata">

### Author: ![borbitter](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/b/8491ac/32.png) [@borbitter](https://discourse.nixos.org/u/borbitter)
#### Post date: [October 24, 2026, 12:37pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/15 "2026-10-24T12:37:10Z")

</div>

Hi,

I hope this is the right thread.

Disclaimer: I did not contribute to nixpkgs (yet) and do not have experience about the packaging process.

I somehow do feel let down by how this situation was handled.  
(nixos-26.05 taking 1d, nixos-unstable still vulnerable)

Is there any reason not to just merge this through to all branches / channels and accept hydra build failures + empty caches / mass rebuilds “on the edge” + failing / broken packages?  
I was quite pissed seeing other infra on Debian and even Docker containers being patched while I still had to wait for the mitigation be merged into nixpkgs.

Is there any progress / working group / person investigating how to change the process in such a way that its fast enough to handle current threat scenarios.

TLDR: Imho just merge security fixes fast and accept breaking (even critical) software by doing so.

PS: My english my sound harsh / weird as its not my native language

best borbitter 🙂

---

<div class="post-metadata">

### Author: ![raboof](https://discourse.nixos.org/user_avatar/discourse.nixos.org/raboof/32/1681_2.png) [@raboof](https://discourse.nixos.org/u/raboof)
#### Post date: [October 24, 2026, 3:13pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/16 "2026-10-24T15:13:49Z")

</div>

> [@borbitter](#):
>
> nixos-26.05 taking 1d, nixos-unstable still vulnerable

FWIW, nixos-26.05-small and nixos-unstable-small were significantly faster, and perhaps we could’ve done a better job making this more widely known

> [@borbitter](#):
>
> Is there any progress / working group / person investigating how to change the process in such a way that its fast enough to handle current threat scenarios

[Security Team | Nix & NixOS](https://nixos.org/community/teams/security/) (though of course that team juggles many more issues, potential improvements, etc)

---

<div class="post-metadata">

### Author: ![bitbloxhub](https://discourse.nixos.org/user_avatar/discourse.nixos.org/bitbloxhub/32/35210_2.png) [@bitbloxhub](https://discourse.nixos.org/u/bitbloxhub)
#### Post date: [October 24, 2026, 3:26pm UTC](https://discourse.nixos.org/t/php2shell-9-2-cve-published-today/80668/17 "2026-10-24T15:26:50Z")

</div>

In general, it feels like we should be recommending the `-small` channels in documentation more prominently to people running internet-facing headless servers, or at least recommend them more prominently to server operators when there are security issues in the non-`-small` channels.
