From d06149fb16148dd0945a04045ee545cd7dc37f42 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Mon, 17 Aug 2026 13:47:15 +0200 Subject: [PATCH] zip: fix buffer overflow Fixes: CVE-2018-13410 --- pkgs/by-name/zi/zip/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/zi/zip/package.nix b/pkgs/by-name/zi/zip/package.nix index 5a103ecef2ed..22b7bab6170a 100644 --- a/pkgs/by-name/zi/zip/package.nix +++ b/pkgs/by-name/zi/zip/package.nix @@ -80,6 +80,14 @@ stdenv.mkDerivation (finalAttrs: { url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-zipnote-freeze.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a"; hash = "sha256-EVr7YS3IytnCRjAYUlkg05GA/kaAY9NRFG7uDt0QLAY="; }) + # Fix buffer overflow (CVE-2018-13410). + # See: https://seclists.org/fulldisclosure/2018/Jul/24 + (fetchDebianPatch { + inherit (finalAttrs) pname version; + debianRevision = "16"; + patch = "buffer-overflow-cve-2018-13410.patch"; + hash = "sha256-Hgy0yrBuSX2XWN1PNASQbjiXfyzSScwHQ+o0fv6Sgs4="; + }) ] ++ lib.optionals (enableNLS && !stdenv.hostPlatform.isCygwin) [ ./natspec-gentoo.patch.bz2 ];