CVE-2026-41991 Predictable Temporary File in GNU gzip

Low 2.0 Published Updated

Local attackers can overwrite arbitrary files via symlink attacks in gzexe when mktemp is unavailable, requiring a patch to prevent data modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-41991?

CVE-2026-41991 is a low-severity path traversal vulnerability in GNU gzip, published on 29 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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

Weakness: CWE-377

Which versions are affected by CVE-2026-41991?

It affects 1 product.

Linux distribution packages (24)
gzip Red Hat:hummingbird:1All versions0:1.14-2.2.hum1
gzip SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.10-150200.13.1
gzip SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.10-150200.13.1
gzip SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions1.10-150200.13.1
gzip SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Micro 5.3All versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Micro 5.4All versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Micro 5.5All versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Server 12 SP5-LTSSAll versions1.10-4.17.1
gzip SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Server 15 SP6-LTSSAll versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Server 16.0All versions1.13-160000.3.1
gzip SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5All versions1.10-4.17.1
gzip SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Server for SAP Applications 15 SP5All versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Server for SAP Applications 15 SP6All versions1.10-150200.13.1
gzip SUSE:Linux Enterprise Server for SAP applications 16.0All versions1.13-160000.3.1
gzip SUSE:Linux Micro 6.0All versions1.13-2.1
gzip SUSE:Linux Micro 6.1All versions1.13-slfo.1.1_3.1
gzip SUSE:Linux Micro 6.2All versions1.13-160000.3.1
gzip openSUSE:Leap 16.0All versions1.13-160000.3.1
gzip openSUSE:TumbleweedAll versions1.14-2.1

Products include Gnu Gzip.

How do I fix CVE-2026-41991?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-41991 being exploited?

There is no known exploitation of CVE-2026-41991 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1783514299, CLSA-2026-1783934943, DEBIAN-CVE-2026-41991, ECHO-233f-78f2-a73b, GHSA-67v8-88jf-4x6q, JLSEC-2026-1264 and 12 more.

Is CVE-2026-41991 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free