| Name | CVE-2005-0758 | 
| Description | zgrep in gzip before 1.3.5 does not properly sanitize arguments, which allows local users to execute arbitrary commands via filenames that are injected into a sed script. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| Debian Bugs | 321286 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| bzip2 (PTS) | bullseye | 1.0.8-4 | fixed | 
|  | bookworm | 1.0.8-5 | fixed | 
|  | forky, sid, trixie | 1.0.8-6 | fixed | 
| gzip (PTS) | bullseye (security), bullseye | 1.10-4+deb11u1 | fixed | 
|  | bookworm | 1.12-1 | fixed | 
|  | forky, sid, trixie | 1.13-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| bzip2 | source | (unstable) | 1.0.2-8.1 | low |  | 321286 | 
| gzip | source | (unstable) | 1.3.5-10 | low |  |  | 
Notes
see http://bugs.gentoo.org/show_bug.cgi?id=90626
[sarge] - bzip2 <no-dsa> (Minor issue)