diff --git a/pkgs/by-name/sn/sngrep/package.nix b/pkgs/by-name/sn/sngrep/package.nix index 813fd9f93bc1..a047885fc73f 100644 --- a/pkgs/by-name/sn/sngrep/package.nix +++ b/pkgs/by-name/sn/sngrep/package.nix @@ -10,6 +10,7 @@ openssl, pcre2, pkg-config, + fetchpatch, }: stdenv.mkDerivation (finalAttrs: { @@ -46,6 +47,13 @@ stdenv.mkDerivation (finalAttrs: { ]; patches = [ + # TODO: Remove this patch when updating to version 1.8.5 + (fetchpatch { + name = "CVE-2026-90558.patch"; + url = "https://github.com/irontec/sngrep/commit/1ff74ee3ab5ff280e8ba976aa8c744dca57eb35b.patch"; + hash = "sha256-QizEvKztbosj3GoRtG9yxeqTglyBNLuuOmPF92XU7BE="; + }) + ./fix-sng_strncpy-declaration.patch ];