CVE-2005-0758: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-gc4q-mf7x-jrrp
Published
Advisory Summary

CVE-2005-0758 is a MODERATE security vulnerability vulnerability (General Security Weakness) affecting Software libraries in the Maven ecosystem. Remediation is available in the latest vendor maintenance releases.

CVE-2005-0758 at a Glance

CVE Identifier CVE-2005-0758
GHSA Identifier GHSA-gc4q-mf7x-jrrp
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2005-0758

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2005-0758, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

References

NVD — CVE-2005-0758 NVD
https://nvd.nist.gov/vuln/detail/CVE-2005-0758
exchange.xforce.ibmcloud.com/vulnerabilities/205... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/20539
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1081
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1107
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9797
bugs.gentoo.org/show_bug.cgi WEB
http://bugs.gentoo.org/show_bug.cgi?id=90626
docs.info.apple.com/article.html WEB
http://docs.info.apple.com/article.html?artnum=306172
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html
rhn.redhat.com/errata/rhsa-2005-35... WEB
http://rhn.redhat.com/errata/RHSA-2005-357.html
secunia.com/advisories/18100 WEB
http://secunia.com/advisories/18100
secunia.com/advisories/19183 WEB
http://secunia.com/advisories/19183
secunia.com/advisories/22033 WEB
http://secunia.com/advisories/22033
secunia.com/advisories/26235 WEB
http://secunia.com/advisories/26235
Software Security Information SECURITY
http://securitytracker.com/id?1013928
Software Security Information SECURITY
http://slackware.com/security/viewer.php?l=slackware-security&y=2006&m=slackware-security.555852
Software Security Information SECURITY
http://www.fedoralegacy.org/updates/FC2/2005-11-14-FLSA_2005_158801__Updated_bzip2_packages_fix_security_issues.html
Software Security Information SECURITY
http://www.gentoo.org/security/en/glsa/glsa-200505-05.xml
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDKSA-2006:026
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDKSA-2006:027
Software Security Information SECURITY
http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.002.html
www.osvdb.org/16371 WEB
http://www.osvdb.org/16371
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2005-474.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/13582
Software Security Information SECURITY
http://www.securityfocus.com/bid/25159
www.ubuntu.com/usn/usn-158-1 WEB
http://www.ubuntu.com/usn/usn-158-1
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/2732

Frequently Asked Questions

What is CVE-2005-0758?
CVE-2005-0758 is a security vulnerability in Software classified as a security vulnerability vulnerability under General Security Weakness.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2005-0758?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2005-0758?
CVE-2005-0758 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2005-0758?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gc4q-mf7x-jrrp",
  "modified" : "2022-05-03T03:14:04Z",
  "published" : "2022-05-03T03:14:04Z",
  "aliases" : [ "CVE-2005-0758" ],
  "details" : "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.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2005-0758"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/20539"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1081"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1107"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9797"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.gentoo.org/show_bug.cgi?id=90626"
  }, {
    "type" : "WEB",
    "url" : "http://docs.info.apple.com/article.html?artnum=306172"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2005-357.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/18100"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/19183"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/22033"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26235"
  }, {
    "type" : "WEB",
    "url" : "http://securitytracker.com/id?1013928"
  }, {
    "type" : "WEB",
    "url" : "http://slackware.com/security/viewer.php?l=slackware-security&y=2006&m=slackware-security.555852"
  }, {
    "type" : "WEB",
    "url" : "http://www.fedoralegacy.org/updates/FC2/2005-11-14-FLSA_2005_158801__Updated_bzip2_packages_fix_security_issues.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.gentoo.org/security/en/glsa/glsa-200505-05.xml"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDKSA-2006:026"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDKSA-2006:027"
  }, {
    "type" : "WEB",
    "url" : "http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.002.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.osvdb.org/16371"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2005-474.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/13582"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/25159"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-158-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/2732"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2005-05-13T04:00:00Z"
  }
}