CVE-2007-4887: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-fr5p-wxp2-3q76
CWE-20
Published
Advisory Summary

CVE-2007-4887 is a MODERATE security vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.. Remediation is available in the latest vendor maintenance releases.

CVE-2007-4887 at a Glance

CVE Identifier CVE-2007-4887
GHSA Identifier GHSA-fr5p-wxp2-3q76
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2007-4887

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-4887, 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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 dl function in PHP 5.2.4 and earlier allows context-dependent attackers to cause a denial of service (application crash) via a long string in the library parameter. NOTE: there are limited usage scenarios under which this would be a vulnerability.

References

NVD — CVE-2007-4887 NVD
https://nvd.nist.gov/vuln/detail/CVE-2007-4887
issues.rpath.com/browse/rpl-1943 WEB
https://issues.rpath.com/browse/RPL-1943
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5767
docs.info.apple.com/article.html WEB
http://docs.info.apple.com/article.html?artnum=307562
h20000.www2.hp.com/bizsupport/techsupp... WEB
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01345501
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
secunia.com/advisories/27102 WEB
http://secunia.com/advisories/27102
secunia.com/advisories/27659 WEB
http://secunia.com/advisories/27659
secunia.com/advisories/28750 WEB
http://secunia.com/advisories/28750
secunia.com/advisories/29420 WEB
http://secunia.com/advisories/29420
secunia.com/advisories/30040 WEB
http://secunia.com/advisories/30040
Software Security Information SECURITY
http://securityreason.com/securityalert/3133
wiki.rpath.com/wiki/advisories:rps... WEB
http://wiki.rpath.com/wiki/Advisories:rPSA-2007-0242
Software Security Information SECURITY
http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
www.php.net/changelog-5.php WEB
http://www.php.net/ChangeLog-5.php#5.2.5
www.php.net/releases/5_2_5.php WEB
http://www.php.net/releases/5_2_5.php
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/478985/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/478988/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/491693/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/bid/26403
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/3825
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0398
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0924/references

Frequently Asked Questions

What is CVE-2007-4887?
CVE-2007-4887 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-20: Improper Input Validation.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2007-4887?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2007-4887?
CVE-2007-4887 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2007-4887?
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-fr5p-wxp2-3q76",
  "modified" : "2022-05-01T18:27:48Z",
  "published" : "2022-05-01T18:27:48Z",
  "aliases" : [ "CVE-2007-4887" ],
  "details" : "The dl function in PHP 5.2.4 and earlier allows context-dependent attackers to cause a denial of service (application crash) via a long string in the library parameter.  NOTE: there are limited usage scenarios under which this would be a vulnerability.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-4887"
  }, {
    "type" : "WEB",
    "url" : "https://issues.rpath.com/browse/RPL-1943"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5767"
  }, {
    "type" : "WEB",
    "url" : "http://docs.info.apple.com/article.html?artnum=307562"
  }, {
    "type" : "WEB",
    "url" : "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01345501"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27102"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27659"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28750"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29420"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/30040"
  }, {
    "type" : "WEB",
    "url" : "http://securityreason.com/securityalert/3133"
  }, {
    "type" : "WEB",
    "url" : "http://wiki.rpath.com/wiki/Advisories:rPSA-2007-0242"
  }, {
    "type" : "WEB",
    "url" : "http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"
  }, {
    "type" : "WEB",
    "url" : "http://www.php.net/ChangeLog-5.php#5.2.5"
  }, {
    "type" : "WEB",
    "url" : "http://www.php.net/releases/5_2_5.php"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/478985/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/478988/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/491693/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/26403"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/3825"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0398"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0924/references"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2007-09-14T00:17:00Z"
  }
}