Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Predictable Temporary File in GNU gzip
Vulnerability 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
CVSS Information
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
Vulnerability Type
不安全的临时文件
Vulnerability Title
GNU gzip 资源管理错误漏洞
Vulnerability Description
GNU gzip是美国GNU基金会开源的一个文件压缩解压程序。 gzip 1.14及之前版本存在资源管理错误漏洞,该漏洞源于gzexe实用程序中不安全的临时文件处理。当用户PATH中不可用mktemp实用程序时,gzexe会回退到仅基于进程ID(PID)构建临时文件路径,且没有进行排他访问或存在性检查。本地攻击者可预先创建预测的临时文件路径作为指向攻击者可写任意文件的符号链接,当gzexe运行时跟随符号链接覆盖目标文件,导致检查时间与使用时间(TOCTOU)条件,从而允许任意文件覆盖。
CVSS Information
N/A
Vulnerability Type
N/A