Severity by source
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Local TOCTOU race with non-default mktemp-absent trigger sets AC:H; no code execution limits impact to I:L only.
Primary rating from Vendor (cert).
CVSS VectorVendor: cert
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
1DescriptionCVE.org
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
AnalysisAI
Arbitrary file overwrite in GNU gzip's gzexe utility allows a local attacker to corrupt victim-accessible files via a symlink attack exploiting predictable temporary filename construction. When mktemp is absent from the user's PATH, gzexe falls back to PID-based temp file naming without exclusive creation or existence checks, enabling a TOCTOU race where a pre-planted symlink redirects the write to an attacker-chosen target. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | Two specific, non-default preconditions must both be satisfied: (1) the mktemp utility must be absent from the executing user's PATH - this is the trigger for the vulnerable PID-based fallback and does not occur on standard installations of Debian, Red Hat, Ubuntu, or other major Linux distributions where mktemp ships as part of GNU coreutils; (2) the attacker must win the TOCTOU race by successfully pre-placing a symlink at the predicted path before gzexe creates its temporary file - the CVSS 4.0 AT:P metric explicitly reflects this precondition. … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N) scores 2.0, accurately capturing the low real-world risk. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | A local attacker sharing a system with the victim monitors or predicts the PID that will be assigned to the victim's next gzexe invocation, then pre-creates a symlink at the predicted temporary file path - for example, pointing to the victim's crontab or a user-writable configuration file. When the victim runs gzexe on a system where mktemp is absent from PATH, gzexe resolves the symlink and overwrites the attacker-chosen target file with temporary data, corrupting it. … |
| Remediation | The upstream fix is available as commit 4e6f8b24ab823146ab8776f0b7fe486ab34d4269 in the GNU gzip repository (https://cgit.git.savannah.gnu.org/cgit/gzip.git/commit/?id=4e6f8b24ab823146ab8776f0b7fe486ab34d4269); upstream fix available via commit but a released patched version is not independently confirmed at time of analysis - monitor https://www.gnu.org/software/gzip/ and downstream distribution advisories for a tagged release. … Detailed patch versions, workarounds, and compensating controls in full report. |
Threat intelligence, references, and detailed analysis are available after sign-in.
Same weakness CWE-377 – Insecure Temporary File
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-40068
GHSA-67v8-88jf-4x6q