CVE-2007-0988: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-rv23-gf9q-6frc
CWE-119
Published
Advisory Summary

CVE-2007-0988 is a MODERATE security vulnerability vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.. Remediation is available in the latest vendor maintenance releases.

CVE-2007-0988 at a Glance

CVE Identifier CVE-2007-0988
GHSA Identifier GHSA-rv23-gf9q-6frc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2007-0988

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-0988, 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 CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. 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

The zend_hash_init function in PHP 5 before 5.2.1 and PHP 4 before 4.4.5, when running on a 64-bit platform, allows context-dependent attackers to cause a denial of service (infinite loop) by unserializing certain integer expressions, which only cause 32-bit arguments to be used after the check for a negative value, as demonstrated by an "a:2147483649:{" argument.

References

NVD — CVE-2007-0988 NVD
https://nvd.nist.gov/vuln/detail/CVE-2007-0988
exchange.xforce.ibmcloud.com/vulnerabilities/327... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/32709
issues.rpath.com/browse/rpl-1088 WEB
https://issues.rpath.com/browse/RPL-1088
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11092
bugzilla.redhat.com/bugzilla/show_bug.c... WEB
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=228858
h20000.www2.hp.com/bizsupport/techsupp... WEB
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506
h20000.www2.hp.com/bizsupport/techsupp... WEB
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137
osvdb.org/32762 WEB
http://osvdb.org/32762
rhn.redhat.com/errata/rhsa-2007-00... WEB
http://rhn.redhat.com/errata/RHSA-2007-0089.html
secunia.com/advisories/24195 WEB
http://secunia.com/advisories/24195
secunia.com/advisories/24217 WEB
http://secunia.com/advisories/24217
secunia.com/advisories/24236 WEB
http://secunia.com/advisories/24236
secunia.com/advisories/24248 WEB
http://secunia.com/advisories/24248
secunia.com/advisories/24284 WEB
http://secunia.com/advisories/24284
secunia.com/advisories/24295 WEB
http://secunia.com/advisories/24295
secunia.com/advisories/24322 WEB
http://secunia.com/advisories/24322
secunia.com/advisories/24419 WEB
http://secunia.com/advisories/24419
secunia.com/advisories/24421 WEB
http://secunia.com/advisories/24421
secunia.com/advisories/24432 WEB
http://secunia.com/advisories/24432
secunia.com/advisories/24606 WEB
http://secunia.com/advisories/24606
secunia.com/advisories/24642 WEB
http://secunia.com/advisories/24642
secunia.com/advisories/25056 WEB
http://secunia.com/advisories/25056
secunia.com/advisories/25423 WEB
http://secunia.com/advisories/25423
secunia.com/advisories/25850 WEB
http://secunia.com/advisories/25850
Software Security Information SECURITY
http://security.gentoo.org/glsa/glsa-200703-21.xml
Software Security Information SECURITY
http://securityreason.com/securityalert/2315
Software Security Information SECURITY
http://support.avaya.com/elmodocs2/security/ASA-2007-101.htm
Software Security Information SECURITY
http://support.avaya.com/elmodocs2/security/ASA-2007-136.htm
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDKSA-2007:048
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2007_32_php.html
Software Security Information SECURITY
http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.010.html
Software Security Information SECURITY
http://www.php-security.org/MOPB/MOPB-05-2007.html
www.php.net/releases/5_2_1.php WEB
http://www.php.net/releases/5_2_1.php
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0076.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0081.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0082.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0088.html
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/461462/100/0/threaded
Software Security Information SECURITY
http://www.securitytracker.com/id?1017671
www.trustix.org/errata/2007/0009 WEB
http://www.trustix.org/errata/2007/0009
www.ubuntu.com/usn/usn-424-1 WEB
http://www.ubuntu.com/usn/usn-424-1
www.ubuntu.com/usn/usn-424-2 WEB
http://www.ubuntu.com/usn/usn-424-2
Software Security Information SECURITY
http://www.us.debian.org/security/2007/dsa-1264
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/1991
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/2374

Frequently Asked Questions

What is CVE-2007-0988?
CVE-2007-0988 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2007-0988?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2007-0988?
CVE-2007-0988 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check Maven dependencies for CVE-2007-0988?
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-rv23-gf9q-6frc",
  "modified" : "2022-05-03T03:18:02Z",
  "published" : "2022-05-03T03:18:02Z",
  "aliases" : [ "CVE-2007-0988" ],
  "details" : "The zend_hash_init function in PHP 5 before 5.2.1 and PHP 4 before 4.4.5, when running on a 64-bit platform, allows context-dependent attackers to cause a denial of service (infinite loop) by unserializing certain integer expressions, which only cause 32-bit arguments to be used after the check for a negative value, as demonstrated by an \"a:2147483649:{\" argument.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-0988"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/32709"
  }, {
    "type" : "WEB",
    "url" : "https://issues.rpath.com/browse/RPL-1088"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11092"
  }, {
    "type" : "WEB",
    "url" : "http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=228858"
  }, {
    "type" : "WEB",
    "url" : "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506"
  }, {
    "type" : "WEB",
    "url" : "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137"
  }, {
    "type" : "WEB",
    "url" : "http://osvdb.org/32762"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2007-0089.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24195"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24217"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24236"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24248"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24284"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24295"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24322"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24419"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24421"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24432"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24606"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/24642"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/25056"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/25423"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/25850"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200703-21.xml"
  }, {
    "type" : "WEB",
    "url" : "http://securityreason.com/securityalert/2315"
  }, {
    "type" : "WEB",
    "url" : "http://support.avaya.com/elmodocs2/security/ASA-2007-101.htm"
  }, {
    "type" : "WEB",
    "url" : "http://support.avaya.com/elmodocs2/security/ASA-2007-136.htm"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDKSA-2007:048"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2007_32_php.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.010.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.php-security.org/MOPB/MOPB-05-2007.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.php.net/releases/5_2_1.php"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0076.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0081.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0082.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0088.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/461462/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1017671"
  }, {
    "type" : "WEB",
    "url" : "http://www.trustix.org/errata/2007/0009"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-424-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-424-2"
  }, {
    "type" : "WEB",
    "url" : "http://www.us.debian.org/security/2007/dsa-1264"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/1991"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/2374"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2007-02-20T17:28:00Z"
  }
}