Hi,
any advice on how to apply this PR while waiting for it to become available in nixpkgs ?
master ← Ma27:bump-php
opened 01:59PM - 21 Oct 26 UTC
Fixes CVE-2026-109618, CVE-2026-109619
## Things done
- [x] Fits [… CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.
- [x] Follows the [automation/AI policy].
- Built on platform:
- [ ] x86_64-linux
- [ ] aarch64-linux
- [ ] aarch64-darwin
- Tested, as applicable:
- [ ] Basic functionality of all binary files, usually in `./result/bin/`.
- [ ] Ran `nixpkgs-review` on this PR. See [nixpkgs-review usage].
- [ ] [Package tests] at `passthru.tests`.
- [ ] [NixOS tests] in [nixos/tests].
- [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
- Nixpkgs Release Notes
- [ ] Package update: when the change is major or breaking.
- NixOS Release Notes
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
[Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
[NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
[nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage
[CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
[automation/AI policy]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy
[lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
[maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
[nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
[pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
[pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test
by using applyPatches on a nixpkgs store path/input ( which causes IFD ), which the you use ( there is documentation on this )
Using nixpkgs pull requests that haven't landed into your channel has never been easier!
It is quite handy to apply patches to nixpkgs, but it require flake though.
gbyte
October 21, 2026, 7:30pm
5
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.
gbyte
October 21, 2026, 8:41pm
7
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