PHP CVE-2026-109618 and CVE-2026-109619

Hi,

any advice on how to apply this PR while waiting for it to become available in nixpkgs ?

by using applyPatches on a nixpkgs store path/input ( which causes IFD ), which the you use ( there is documentation on this )

Thanks, much appreciated

It is quite handy to apply patches to nixpkgs, but it require flake though.

You can also apply an overlay that grabs the source directly from php.net until the packages land in nixpkgs: NixOS: Quick fix for PHP CVE-2026-109618 and CVE-2026-109619 | gbyte

How do I use this? I put the overlay into /etc/nixos/overlays/php.nix and then in configuration.nix I added nixpkgs.overlays = [ (import ./overlays/php.nix) ]; but nixos-rebuild complains about infinite recursion.

That’s probably because my example is a module which holds an overlay function - you may have to import it as a module and not an overlay:

configuration.nix:
imports = [ ./overlays/php.nix ];

I updated the blog post. Let me know if it works.

working for me (I think!)

Thanks a lot, that worked! You’re a lifesaver.

To get news on when the patch will be upstream: Nixpkgs Tracker

And