Skip to content

CVE-2026-41991 Predictable Temporary File in GNU gzip

LowCVSS 2.0 EPSS 0.12%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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

Upgrade path

25 packages: 11 fixed, 14 with no fix yet.

PackageAffectedFixed inStatus
azure linux gzip(Azure Linux 3.0) All versions No fix listed No fix yet
debian/gzip(Debian 12) = 1.12-1; = 1.12-1.1; = 1.12-1.2; = 1.13-1 +5 more No fix listed No fix yet
redhat/devspaces/code-sshd-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/discovery/discovery-server-rhel9:1788205779(Red Hat discovery 2 el9) All versions No fix listed No fix yet
redhat/gzip(Red Hat rhel_els 6) All versions No fix listed No fix yet
redhat/gzip(Red Hat rhel_els 7) All versions No fix listed No fix yet
redhat/openshift/ose-rhel-coreos-8(Red Hat openshift 4) All versions No fix listed No fix yet
redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 4) All versions No fix listed No fix yet
redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 5) All versions No fix listed No fix yet
redhat/rhui5/cds-kubernetes-rhel9:1788880445(Red Hat rhui 5 el9) All versions No fix listed No fix yet
redhat/rhui5/cds-rhel9:1788880464(Red Hat rhui 5 el9) All versions No fix listed No fix yet
redhat/rhui5/haproxy-rhel9:1788880456(Red Hat rhui 5 el9) All versions No fix listed No fix yet
redhat/rhui5/installer-rhel9:1788765051(Red Hat rhui 5 el9) All versions No fix listed No fix yet
redhat/rhui5/rhua-rhel9:1788880581(Red Hat rhui 5 el9) All versions No fix listed No fix yet
alpine/gzip(Alpine v3.24) < 1.15-r0 1.15-r0 Fixed
debian/gzip(Debian 13) < 1.13-1+deb13u1; = 1.13-1 1.13-1+deb13u1 Fixed
debian/gzip(Debian 14) < 1.14-1; = 1.13-1; = 1.13.56~e549-1~exp1; = 1.14-1~exp1 +1 more 1.14-1 Fixed
GNU gzip <= 1.14 after 1.14 Fixed
redhat/gzip(Red Hat enterprise_linux 10.2) < 1.13-4.el10_2 1.13-4.el10_2 Fixed
redhat/gzip(Red Hat enterprise_linux 8) < 1.9-15.el8_10 1.9-15.el8_10 Fixed
redhat/gzip(Red Hat enterprise_linux 9) < 1.12-2.el9_8 1.12-2.el9_8 Fixed
redhat/gzip-main(Red Hat hummingbird 1) < 1.14-2.2.hum1; < 1.15-1.hum1 1.14-2.2.hum1, 1.15-1.hum1 Fixed
ubuntu/gzip(Ubuntu 22.04) < 1.10-4ubuntu4.2 1.10-4ubuntu4.2 Fixed
ubuntu/gzip(Ubuntu 24.04) < 1.12-1ubuntu3.2 1.12-1ubuntu3.2 Fixed
ubuntu/gzip(Ubuntu 26.04) < 1.14-1~exp2ubuntu1.1 1.14-1~exp2ubuntu1.1 Fixed

Affected products

ProductAffected versionsFixed in
GNU gzip <= 1.14 No fix listed
debian/gzip(Debian:12) All versions No fix listed
debian/gzip(Debian:14) < 1.14-1 1.14-1
debian/gzip(Debian:13) < 1.13-1+deb13u1 1.13-1+deb13u1
redhat/gzip(Red Hat:enterprise_linux:10.2) < 1.13-4.el10_2 1.13-4.el10_2
redhat/gzip(Red Hat:enterprise_linux:8) < 1.9-15.el8_10 1.9-15.el8_10
redhat/gzip(Red Hat:enterprise_linux:9) < 1.12-2.el9_8 1.12-2.el9_8
redhat/discovery/discovery-server-rhel9:1788205779(Red Hat:discovery:2::el9) All versions No fix listed
redhat/gzip-main(Red Hat:hummingbird:1) < 1.14-2.2.hum1 1.14-2.2.hum1
redhat/gzip-main(Red Hat:hummingbird:1) < 1.15-1.hum1 1.15-1.hum1
redhat/rhui5/cds-kubernetes-rhel9:1788880445(Red Hat:rhui:5::el9) All versions No fix listed
redhat/rhui5/cds-rhel9:1788880464(Red Hat:rhui:5::el9) All versions No fix listed
redhat/rhui5/haproxy-rhel9:1788880456(Red Hat:rhui:5::el9) All versions No fix listed
redhat/rhui5/installer-rhel9:1788765051(Red Hat:rhui:5::el9) All versions No fix listed
redhat/rhui5/rhua-rhel9:1788880581(Red Hat:rhui:5::el9) All versions No fix listed
redhat/gzip(Red Hat:rhel_els:6) All versions No fix listed
redhat/gzip(Red Hat:rhel_els:7) All versions No fix listed
redhat/openshift/ose-rhel-coreos-8(Red Hat:openshift:4) All versions No fix listed
redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:4) All versions No fix listed
redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:5) All versions No fix listed
redhat/devspaces/code-sshd-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
debian/gzip(Debian:12) = 1.12-1 No fix listed
debian/gzip(Debian:12) = 1.12-1.1 No fix listed
debian/gzip(Debian:12) = 1.12-1.2 No fix listed
debian/gzip(Debian:12) = 1.13-1 No fix listed
Show 14 more
ProductAffected versionsFixed in
debian/gzip(Debian:12) = 1.13.56~e549-1~exp1 No fix listed
debian/gzip(Debian:12) = 1.14-1 No fix listed
debian/gzip(Debian:12) = 1.14-1~exp1 No fix listed
debian/gzip(Debian:12) = 1.14-1~exp2 No fix listed
debian/gzip(Debian:13) = 1.13-1 No fix listed
debian/gzip(Debian:14) = 1.13-1 No fix listed
debian/gzip(Debian:14) = 1.13.56~e549-1~exp1 No fix listed
debian/gzip(Debian:14) = 1.14-1~exp1 No fix listed
debian/gzip(Debian:14) = 1.14-1~exp2 No fix listed
ubuntu/gzip(Ubuntu:22.04) < 1.10-4ubuntu4.2 1.10-4ubuntu4.2
alpine/gzip(Alpine:v3.24) < 1.15-r0 1.15-r0
ubuntu/gzip(Ubuntu:24.04) < 1.12-1ubuntu3.2 1.12-1ubuntu3.2
ubuntu/gzip(Ubuntu:26.04) < 1.14-1~exp2ubuntu1.1 1.14-1~exp2ubuntu1.1
azure linux gzip(Azure Linux:3.0) All versions No fix listed

References