Vulnerability · Published Jun 29, 2026 · Assigned by CERT-PL

CVE-2026-41991Predictable Temporary File in GNU gzip

Low 2.0

In plain English

A low-severity security flaw in gzip from GNU. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.0Low
Exploit odds (30 days)0.1%top 98.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10gzip1.13-4.el10_2ALSA-2026:61625
AlmaLinux:8gzip1.9-15.el8_10ALSA-2026:65998
AlmaLinux:9gzip1.12-2.el9_8ALSA-2026:61623
Alpine:v3.24gzip1.15-r0ALPINE-CVE-2026-41991
Debian:12gzipno fix listedDEBIAN-CVE-2026-41991
Debian:13gzip1.13-1+deb13u1DEBIAN-CVE-2026-41991
Debian:14gzip1.14-1DEBIAN-CVE-2026-41991
Rocky Linux:10gzip0:1.13-4.el10_2RLSA-2026:61625
Rocky Linux:8gzip0:1.9-15.el8_10RLSA-2026:65998
Rocky Linux:9gzip0:1.12-2.el9_8RLSA-2026:61623
Ubuntu:22.04:LTSgzip1.10-4ubuntu4.2USN-8512-1
Ubuntu:22.04:LTSgzip1.10-4ubuntu4.2UBUNTU-CVE-2026-41991
Ubuntu:24.04:LTSgzip1.12-1ubuntu3.2UBUNTU-CVE-2026-41991
Ubuntu:24.04:LTSgzip1.12-1ubuntu3.2USN-8512-1
Ubuntu:25.10gzipno fix listedUBUNTU-CVE-2026-41991
Ubuntu:26.04:LTSgzip1.14-1~exp2ubuntu1.1UBUNTU-CVE-2026-41991
Ubuntu:26.04:LTSgzip1.14-1~exp2ubuntu1.1USN-8512-1

Affected products (as reported)

VendorProductVersions
GNU gzip 0 – through 1.14

Weakness: CWE-377 · Vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

References