CVEfocus › CVE database › CVE-2026-41991

CVE-2026-41991Predictable Temporary File in GNU gzip

CVSS 2.0 LowEPSS 0.1% (higher than 2% of CVEs)Published 2026-06-29Updated 2026-06-29Assigner: CERT-PL

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

CWE-377

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

15Fixed
7Fix pending
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04gzipFixed1.14-1~exp2ubuntu1.1UBUNTU-CVE-2026-41991
Ubuntu 25.10gzipWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-41991
Ubuntu 24.04gzipFixed1.12-1ubuntu3.2UBUNTU-CVE-2026-41991
Ubuntu 22.04gzipFixed1.10-4ubuntu4.2UBUNTU-CVE-2026-41991
Ubuntu 20.04gzipFix pending1.10-0ubuntu4.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-41991
Ubuntu 18.04gzipFix pending1.6-5ubuntu1.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-41991
Ubuntu 16.04gzipFix pending1.6-4ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-41991
Ubuntu 14.04gzipFix pending1.6-3ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-41991
Debian 14gzipFixed1.14-1DEBIAN-CVE-2026-41991
Debian 13gzipFixed1.13-1+deb13u1DEBIAN-CVE-2026-41991
Debian 12gzipFix pendingDEBIAN-CVE-2026-41991
Red Hat Enterprise Linux 10gzipFixed0:1.13-4.el10_2RHSA-2026:61625
Red Hat Enterprise Linux 9gzipFixed0:1.12-2.el9_8RHSA-2026:61623
Red Hat Enterprise Linux 8gzipFixed0:1.9-15.el8_10RHSA-2026:65998
Red Hat Enterprise Linux 7gzipFix pending
Fix deferred
Red Hat Enterprise Linux 6gzipFix pending
Fix deferred
AlmaLinux 10gzipFixed1.13-4.el10_2ALSA-2026:61625
AlmaLinux 9gzipFixed1.12-2.el9_8ALSA-2026:61623
AlmaLinux 8gzipFixed1.9-15.el8_10ALSA-2026:65998
Rocky Linux 10gzipFixed0:1.13-4.el10_2RLSA-2026:61625
Rocky Linux 9gzipFixed0:1.12-2.el9_8RLSA-2026:61623
Rocky Linux 8gzipFixed0:1.9-15.el8_10RLSA-2026:65998
Alpine Linux 3.24gzipFixed1.15-r0ALPINE-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.

Vendor advisories:

References

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.