CVE-2007-1997: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-p592-g5c7-x7w6
Published
Advisory Summary

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

CVE-2007-1997 at a Glance

CVE Identifier CVE-2007-1997
GHSA Identifier GHSA-p592-g5c7-x7w6
Severity HIGH
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-2007-1997

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-2007-1997, 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

Integer signedness error in the (1) cab_unstore and (2) cab_extract functions in libclamav/cab.c in Clam AntiVirus (ClamAV) before 0.90.2 allow remote attackers to execute arbitrary code via a crafted CHM file that contains a negative integer, which passes a signed comparison and leads to a stack-based buffer overflow.

References

secunia.com/advisories/25022 WEB
http://secunia.com/advisories/25022
NVD — CVE-2007-1997 NVD
https://nvd.nist.gov/vuln/detail/CVE-2007-1997
exchange.xforce.ibmcloud.com/vulnerabilities/336... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/33637
docs.info.apple.com/article.html WEB
http://docs.info.apple.com/article.html?artnum=307562
labs.idefense.com/intelligence/vulner... WEB
http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=513
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
secunia.com/advisories/24891 WEB
http://secunia.com/advisories/24891
secunia.com/advisories/24920 WEB
http://secunia.com/advisories/24920
secunia.com/advisories/24946 WEB
http://secunia.com/advisories/24946
secunia.com/advisories/24996 WEB
http://secunia.com/advisories/24996
secunia.com/advisories/25028 WEB
http://secunia.com/advisories/25028
secunia.com/advisories/25189 WEB
http://secunia.com/advisories/25189
secunia.com/advisories/29420 WEB
http://secunia.com/advisories/29420
Software Security Information SECURITY
http://security.gentoo.org/glsa/glsa-200704-21.xml
sourceforge.net/project/shownotes.p... WEB
http://sourceforge.net/project/shownotes.php?release_id=500765
support.novell.com/techcenter/psdb/50a... WEB
http://support.novell.com/techcenter/psdb/50a5cb718f20761dd7e0b6b4e0935c52.html
Software Security Information SECURITY
http://www.debian.org/security/2007/dsa-1281
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDKSA-2007:098
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2007_26_clamav.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/23473
Software Security Information SECURITY
http://www.securitytracker.com/id?1017921
www.trustix.org/errata/2007/0013 WEB
http://www.trustix.org/errata/2007/0013
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/1378
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0924/references

Frequently Asked Questions

What is CVE-2007-1997?
CVE-2007-1997 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-2007-1997?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2007-1997?
CVE-2007-1997 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2007-1997?
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-p592-g5c7-x7w6",
  "modified" : "2025-04-09T03:40:14Z",
  "published" : "2022-05-01T17:58:57Z",
  "aliases" : [ "CVE-2007-1997" ],
  "details" : "Integer signedness error in the (1) cab_unstore and (2) cab_extract functions in libclamav/cab.c in Clam AntiVirus (ClamAV) before 0.90.2 allow remote attackers to execute arbitrary code via a crafted CHM file that contains a negative integer, which passes a signed comparison and leads to a stack-based buffer overflow.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-1997"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/33637"
  }, {
    "type" : "WEB",
    "url" : "http://docs.info.apple.com/article.html?artnum=307562"
  }, {
    "type" : "WEB",
    "url" : "http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=513"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24891"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24920"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24946"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24996"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/25022"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/25028"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/25189"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29420"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200704-21.xml"
  }, {
    "type" : "WEB",
    "url" : "http://sourceforge.net/project/shownotes.php?release_id=500765"
  }, {
    "type" : "WEB",
    "url" : "http://support.novell.com/techcenter/psdb/50a5cb718f20761dd7e0b6b4e0935c52.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2007/dsa-1281"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDKSA-2007:098"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2007_26_clamav.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/23473"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1017921"
  }, {
    "type" : "WEB",
    "url" : "http://www.trustix.org/errata/2007/0013"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/1378"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0924/references"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2007-04-16T21:19:00Z"
  }
}