about summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-05-26 15:20:23 +0300
committerGitHub <noreply@github.com>2023-05-26 15:20:23 +0300
commit455157f2fef57b9bcf055c986ef94361555dc0ea (patch)
tree4d2e860e1097574f6391b5bc8d071efe6a33c43b /pkgs/misc
parent2a03135ef8ac3dcc839fc5adeb70b73fe38462f7 (diff)
parentbb8168bf785e867d8fa0f6300703a182e0ccae88 (diff)
Merge pull request #233687 from yayayayaka/cups-filters-fix-cve-2023-24805
cups-filters: fix CVE-2023-24805
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/cups/filters.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/misc/cups/filters.nix b/pkgs/misc/cups/filters.nix
index 6da2226fa6519..208a422a7dec7 100644
--- a/pkgs/misc/cups/filters.nix
+++ b/pkgs/misc/cups/filters.nix
@@ -6,6 +6,7 @@
 , dbus
 , dejavu_fonts
 , fetchurl
+, fetchpatch
 , fontconfig
 , gawk
 , ghostscript
@@ -40,6 +41,14 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-qQfsdp+7cu+/v5tUCyUKCOM7bjc6inw0P5hA+6TQR4s=";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "CVE-2023-24805.patch";
+      url = "https://github.com/OpenPrinting/cups-filters/commit/93e60d3df358c0ae6f3dba79e1c9684657683d89.patch";
+      hash = "sha256-KgWTYFr2uShL040azzE+KaNyBPy7Gs/hCnEgQmmPCys=";
+    })
+  ];
+
   nativeBuildInputs = [ pkg-config makeWrapper ];
 
   buildInputs = [