cve.bz

CVE-2026-41991 gnu gzip: Insecure Temporary File

2.0 lowEPSS 0.1%Fix available

Low (2.0) in gnu gzip. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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

Severity

CVSS 4.0

2.0 low
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

CVSS 3.1

4.7 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 2nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-377 Insecure Temporary File deprecated by MITRE
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41991 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41991?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41991?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41991 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-41991

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-41991](https://cve.bz/cve/badge/CVE-2026-41991.svg)](https://cve.bz/cve/CVE-2026-41991)

HTML:

<a href="https://cve.bz/cve/CVE-2026-41991"><img src="https://cve.bz/cve/badge/CVE-2026-41991.svg" alt="CVE-2026-41991"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GNU gzipthrough 1.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12gzipno fix listedDEBIAN-CVE-2026-41991
Debian13gzip1.13-1+deb13u1DEBIAN-CVE-2026-41991
Debian14gzip1.14-1DEBIAN-CVE-2026-41991
Ubuntu22.04:LTSgzip1.10-4ubuntu4.2UBUNTU-CVE-2026-41991 USN-8512-1
Ubuntu24.04:LTSgzip1.12-1ubuntu3.2UBUNTU-CVE-2026-41991 USN-8512-1
Ubuntu25.10gzipno fix listedUBUNTU-CVE-2026-41991
Ubuntu26.04:LTSgzip1.14-1~exp2ubuntu1.1UBUNTU-CVE-2026-41991 USN-8512-1
UbuntuPro:14.04:LTSgzip1.6-3ubuntu1+esm2UBUNTU-CVE-2026-41991 USN-8733-2
UbuntuPro:16.04:LTSgzip1.6-4ubuntu1+esm2UBUNTU-CVE-2026-41991 USN-8733-1
UbuntuPro:18.04:LTSgzip1.6-5ubuntu1.2+esm1UBUNTU-CVE-2026-41991 USN-8733-2
UbuntuPro:20.04:LTSgzip1.10-0ubuntu4.1+esm1UBUNTU-CVE-2026-41991 USN-8733-2
Red Hatenterprise_linux:8::baseosgzip, gzip-debuginfo, gzip-debugsource0:1.9-15.el8_10RHSA-2026:65998
Red Hatenterprise_linux:9::baseosgzip, gzip-debuginfo, gzip-debugsource0:1.12-2.el9_8RHSA-2026:61623
Red Hatenterprise_linux:10.2gzip, gzip-debuginfo, gzip-debugsource0:1.13-4.el10_2RHSA-2026:61625
Red Hathummingbird:1gzip0:1.14-2.2.hum1RHSA-2026:33771
Red Hathummingbird:1gzip0:1.15-1.hum1RHSA-2026:79717
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 moregzip1.10-150200.13.1SUSE-SU-2026:3269-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5gzip1.10-4.17.1SUSE-SU-2026:3241-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0gzip1.13-160000.3.1SUSE-SU-2026:22818-1
SUSELinux Micro 6.0gzip1.13-2.1SUSE-SU-2026:22918-1
SUSELinux Micro 6.1gzip1.13-slfo.1.1_3.1SUSE-SU-2026:22906-1
SUSELinux Micro 6.2gzip1.13-160000.3.1SUSE-SU-2026:22753-1
openSUSELeap 16.0gzip1.13-160000.3.1openSUSE-SU-2026:21371-1
openSUSETumbleweedgzip1.14-2.1openSUSE-SU-2026:11174-1
AlmaLinux8gzip1.9-15.el8_10ALSA-2026:65998
AlmaLinux9gzip1.12-2.el9_8ALSA-2026:61623
AlmaLinux10gzip1.13-4.el10_2ALSA-2026:61625
Rocky Linux8gzip0:1.9-15.el8_10RLSA-2026:65998
Rocky Linux9gzip0:1.12-2.el9_8RLSA-2026:61623
Rocky Linux10gzip0:1.13-4.el10_2RLSA-2026:61625
Alpinev3.24gzip1.15-r0ALPINE-CVE-2026-41991
Alpaquitastreamgzip1.15-r0BELL-CVE-2026-41991

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in the gzexe utility of GNU gzip. When the mktemp utility is not available in the user's PATH, gzexe creates temporary files with predictable names based on the process ID. A local attacker can exploit this by creating a symbolic link at the predicted temporary file path, leading to a TOCTOU race condition that allows arbitrary file overwrite. On Red Hat Enterprise Linux, mktemp is provided by coreutils which is always installed, making the vulnerable fallback code path effectively unreachable in standard deployments.

Red Hat's mitigation

Ensure that the mktemp utility (provided by the coreutils package) is available in PATH when using the gzexe utility. On Red Hat Enterprise Linux, mktemp is installed by default and no additional action is needed.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10gzip-0:1.13-4.el10_2Fixed 2026-08-31RHSA-2026:61625
Red Hat Enterprise Linux 8gzip-0:1.9-15.el8_10Fixed 2026-09-09RHSA-2026:65998
Red Hat Enterprise Linux 9gzip-0:1.12-2.el9_8Fixed 2026-08-31RHSA-2026:61623
Red Hat Discovery 2discovery/discovery-server-rhel9:1788205779Fixed 2026-08-31RHSA-2026:61783
Red Hat Hardened Imagesgzip-main-1.14-2.2.hum1Fixed 2026-06-30RHSA-2026:33771
Red Hat Hardened Imagesgzip-main-1.15-1.hum1Fixed 2026-10-08RHSA-2026:79717
Red Hat Update Infrastructure 5rhui5/cds-kubernetes-rhel9:1788880445Fixed 2026-09-09RHSA-2026:66018
Red Hat Update Infrastructure 5rhui5/cds-rhel9:1788880464Fixed 2026-09-09RHSA-2026:66018
Red Hat Update Infrastructure 5rhui5/haproxy-rhel9:1788880456Fixed 2026-09-09RHSA-2026:66018
Red Hat Update Infrastructure 5rhui5/installer-rhel9:1788765051Fixed 2026-09-09RHSA-2026:66018
Red Hat Update Infrastructure 5rhui5/rhua-rhel9:1788880581Fixed 2026-09-09RHSA-2026:66018
Red Hat Enterprise Linux 6gzipFix deferred
Red Hat Enterprise Linux 7gzipFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Dev Spacesdevspaces/code-sshd-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-41991.

Attack patterns (CAPEC)

  • CAPEC-149 Explore for Predictable Temporary File Names Severity: Medium
  • CAPEC-155 Screen Temporary Files for Sensitive Information Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON