# CVE-2026-41991: gzip: GNU gzip contains a vulnerability in the gzexe utility related to insecure temporary file handling

CVE-2026-41991 is fixed in 2 products on 1 platform, first by gzip 1.6-5ubuntu1.2+esm1, released June 29, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-41991
- Priority: Routine
- CVSS: 6.0 (medium)
- EPSS: 0.0012
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 29, 2026

## Description

GNU gzip contains a vulnerability in the gzexe utility related to insecure temporary file handling. When the mktemp utility is not available in the user’s PATH, gzexe falls back to constructing a temporary file path based solely on the process ID (PID). This predictable filename is created without exclusive access or existence checks. A local attacker can pre‑create the predicted temporary file path as a symbolic link pointing to an arbitrary file writable by the victim. When gzexe runs, it follows the symlink and overwrites the target file, resulting in a time‑of‑check to time‑of‑use (TOCTOU) condition that allows arbitrary file overwrite.  This issue has been fixed in the commit 4e6f8b24ab823146ab8776f0b7fe486ab34d4269

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | gzip Debian 13.5 (trixie) | 1.13-1+deb13u1 | [DEBIAN-CVE-2026-41991](https://patchblox.com/security/data/fix/linux/debian-cve-2026-41991.md) | Jun 29, 2026 |
| Linux | gzip Debian 14 | 1.14-1 | [DEBIAN-CVE-2026-41991](https://patchblox.com/security/data/fix/linux/debian-cve-2026-41991.md) | Jun 29, 2026 |
| Linux | gzip RHEL 10 | 1.13-4.el10_2 | [RHSA-2026:61625](https://patchblox.com/security/data/fix/linux/rhsa-2026-61625.md) | Jun 29, 2026 |
| Linux | gzip RHEL 8 | 0:1.9-15.el8_10 | [RHSA-2026:65998](https://patchblox.com/security/data/fix/linux/rhsa-2026-65998.md) | Sep 13, 2026 |
| Linux | gzip RHEL 9 | 0:1.12-2.el9_8 | [RHSA-2026:61623](https://patchblox.com/security/data/fix/linux/rhsa-2026-61623.md) | Sep 13, 2026 |
| Linux | gzip Ubuntu 18.04.6 LTS (bionic) | 1.6-5ubuntu1.2+esm1 | [gzip 1.6-5ubuntu1.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-gzip-1.6-5ubuntu1.2-esm1.md) | Jun 29, 2026 |
| Linux | gzip Ubuntu 20.04 LTS (focal) | 1.10-0ubuntu4.1+esm1 | [gzip 1.10-0ubuntu4.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-gzip-1.10-0ubuntu4.1-esm1.md) | Jun 29, 2026 |
| Linux | gzip Ubuntu 22.04.1 LTS (jammy) | 1.10-4ubuntu4.2 | [gzip 1.10-4ubuntu4.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-gzip-1.10-4ubuntu4.2.md) | Jul 7, 2026 |
| Linux | gzip Ubuntu 24.04.5 LTS (noble) | 1.12-1ubuntu3.2 | [gzip 1.12-1ubuntu3.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-gzip-1.12-1ubuntu3.2.md) | Jul 7, 2026 |
| Linux | gzip Ubuntu 26.04.1 LTS (resolute) | 1.14-1~exp2ubuntu1.1 | [gzip 1.14-1~exp2ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-gzip-1.14-1-exp2ubuntu1.1.md) | Jun 29, 2026 |
| Linux | gzip almalinux 10 | 1.13-4.el10_2 | [ALSA-2026:61625](https://patchblox.com/security/data/fix/linux/alsa-2026-61625.md) | Aug 31, 2026 |
| Linux | gzip almalinux 8 | 1.9-15.el8_10 | [ALSA-2026:65998](https://patchblox.com/security/data/fix/linux/alsa-2026-65998.md) | Sep 9, 2026 |
| Linux | gzip almalinux 9 | 1.12-2.el9_8 | [ALSA-2026:61623](https://patchblox.com/security/data/fix/linux/alsa-2026-61623.md) | Aug 31, 2026 |
| Linux | gzip ol 10 | 0:1.13-4.el10_2 | [ELSA-2026-61625-0](https://patchblox.com/security/data/fix/linux/elsa-2026-61625-0.md) | Sep 1, 2026 |
| Linux | gzip ol 8 | 0:1.9-15.el8_10 | [ELSA-2026-65998-0](https://patchblox.com/security/data/fix/linux/elsa-2026-65998-0.md) | Sep 10, 2026 |
| Linux | gzip ol 9 | 0:1.12-2.el9_8 | [ELSA-2026-61623-0](https://patchblox.com/security/data/fix/linux/elsa-2026-61623-0.md) | Sep 1, 2026 |
| Linux | gzip opensuse-leap 16.0 | 1.13-160000.3.1 | [OPENSUSE-SU-2026:21371-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21371-1.md) | Jul 18, 2026 |
| Linux | gzip rocky 10 | 0:1.13-4.el10_2 | [RLSA-2026:61625](https://patchblox.com/security/data/fix/linux/rlsa-2026-61625.md) | Sep 1, 2026 |
| Linux | gzip rocky 8 | 0:1.9-15.el8_10 | [RLSA-2026:65998](https://patchblox.com/security/data/fix/linux/rlsa-2026-65998.md) | Sep 10, 2026 |
| Linux | gzip rocky 9 | 0:1.12-2.el9_8 | [RLSA-2026:61623](https://patchblox.com/security/data/fix/linux/rlsa-2026-61623.md) | Sep 1, 2026 |
| Linux | gzip sles 15.6 | 1.10-150200.13.1 | [SUSE-SU-2026:3269-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3269-1.md) | Jul 27, 2026 |
| Linux | gzip sles 15.7 | 1.10-150200.13.1 | [SUSE-SU-2026:3269-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3269-1.md) | Jul 27, 2026 |
| Linux | gzip sles 16.0 | 1.13-160000.3.1 | [SUSE-SU-2026:22818-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-22818-1.md) | Jul 18, 2026 |
| Linux | gzip-win32 Ubuntu 18.04.6 LTS (bionic) | 1.6-5ubuntu1.2+esm1 | [gzip-win32 1.6-5ubuntu1.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-gzip-win32-1.6-5ubuntu1.2-esm1.md) | Jun 29, 2026 |
| Linux | gzip-win32 Ubuntu 20.04 LTS (focal) | 1.10-0ubuntu4.1+esm1 | [gzip-win32 1.10-0ubuntu4.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-gzip-win32-1.10-0ubuntu4.1-esm1.md) | Jun 29, 2026 |
| Linux | gzip-win32 Ubuntu 22.04.1 LTS (jammy) | 1.10-4ubuntu4.2 | [gzip-win32 1.10-4ubuntu4.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-gzip-win32-1.10-4ubuntu4.2.md) | Jul 7, 2026 |
| Linux | gzip-win32 Ubuntu 24.04.5 LTS (noble) | 1.12-1ubuntu3.2 | [gzip-win32 1.12-1ubuntu3.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-gzip-win32-1.12-1ubuntu3.2.md) | Jul 7, 2026 |

---

Data as of 2026-11-09T13:31:49Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
