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
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41991",
"id": "CVE-2026-41991",
"imported": "2026-08-12T14:36:31.587Z",
"modified": "2026-07-01T14:02:24.450Z",
"published": "2026-06-29T12:16:29.770Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-41991"
},
{
"html_url": "https://github.com/advisories/GHSA-67v8-88jf-4x6q",
"id": "GHSA-67v8-88jf-4x6q",
"imported": "2026-08-12T14:36:35.052Z",
"modified": "2026-07-01T15:34:56Z",
"published": "2026-06-29T12:31:44Z",
"url": "https://api.github.com/advisories/GHSA-67v8-88jf-4x6q"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-40068",
"id": "EUVD-2026-40068",
"imported": "2026-08-12T14:36:33.062Z",
"modified": "2026-06-29T13:31:46Z",
"published": "2026-06-29T10:15:50Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-40068"
}
]
}