CVE-2026-41991Predictable Temporary File in GNU gzip
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
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | gzip | Fixed | 1.14-1~exp2ubuntu1.1 | UBUNTU-CVE-2026-41991 |
| Ubuntu 25.10 | gzip | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-41991 | |
| Ubuntu 24.04 | gzip | Fixed | 1.12-1ubuntu3.2 | UBUNTU-CVE-2026-41991 |
| Ubuntu 22.04 | gzip | Fixed | 1.10-4ubuntu4.2 | UBUNTU-CVE-2026-41991 |
| Ubuntu 20.04 | gzip | Fix pending | 1.10-0ubuntu4.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-41991 |
| Ubuntu 18.04 | gzip | Fix pending | 1.6-5ubuntu1.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-41991 |
| Ubuntu 16.04 | gzip | Fix pending | 1.6-4ubuntu1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-41991 |
| Ubuntu 14.04 | gzip | Fix pending | 1.6-3ubuntu1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-41991 |
| Debian 14 | gzip | Fixed | 1.14-1 | DEBIAN-CVE-2026-41991 |
| Debian 13 | gzip | Fixed | 1.13-1+deb13u1 | DEBIAN-CVE-2026-41991 |
| Debian 12 | gzip | Fix pending | DEBIAN-CVE-2026-41991 | |
| Red Hat Enterprise Linux 10 | gzip | Fixed | 0:1.13-4.el10_2 | RHSA-2026:61625 |
| Red Hat Enterprise Linux 9 | gzip | Fixed | 0:1.12-2.el9_8 | RHSA-2026:61623 |
| Red Hat Enterprise Linux 8 | gzip | Fixed | 0:1.9-15.el8_10 | RHSA-2026:65998 |
| Red Hat Enterprise Linux 7 | gzip | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gzip | Fix pending Fix deferred | ||
| AlmaLinux 10 | gzip | Fixed | 1.13-4.el10_2 | ALSA-2026:61625 |
| AlmaLinux 9 | gzip | Fixed | 1.12-2.el9_8 | ALSA-2026:61623 |
| AlmaLinux 8 | gzip | Fixed | 1.9-15.el8_10 | ALSA-2026:65998 |
| Rocky Linux 10 | gzip | Fixed | 0:1.13-4.el10_2 | RLSA-2026:61625 |
| Rocky Linux 9 | gzip | Fixed | 0:1.12-2.el9_8 | RLSA-2026:61623 |
| Rocky Linux 8 | gzip | Fixed | 0:1.9-15.el8_10 | RLSA-2026:65998 |
| Alpine Linux 3.24 | gzip | Fixed | 1.15-r0 | ALPINE-CVE-2026-41991 |
What the vendor says
As published in the CVE record by CERT-PL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU gzip: affected: up to 1.14
Vendor advisories:
References
- https://cert.pl/en/posts/2026/04/CVE-2026-41991/
- https://www.gnu.org/software/gzip/
- https://cgit.git.savannah.gnu.org/cgit/gzip.git/commit/?id=4e6f8b24ab823146ab8776f0b7fe486ab34d4269
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.