CVE-2007-3806: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-x5ff-24v2-wj9j
CWE-20
Published
Advisory Summary

CVE-2007-3806 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-3806 at a Glance

CVE Identifier CVE-2007-3806
GHSA Identifier GHSA-x5ff-24v2-wj9j
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-3806

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-3806, 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 glob function in PHP 5.2.3 allows context-dependent attackers to cause a denial of service and possibly execute arbitrary code via an invalid value of the flags parameter, probably related to memory corruption or an invalid read on win32 platforms, and possibly related to lack of initialization for a glob structure.

References

NVD — CVE-2007-3806 NVD
https://nvd.nist.gov/vuln/detail/CVE-2007-3806
exchange.xforce.ibmcloud.com/vulnerabilities/354... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/35437
cvs.php.net/viewvc.cgi/php-src/... WEB
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?r1=1.166&r2=1.167
cvs.php.net/viewvc.cgi/php-src/... WEB
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?view=log
osvdb.org/36085 WEB
http://osvdb.org/36085
secunia.com/advisories/26085 WEB
http://secunia.com/advisories/26085
secunia.com/advisories/26642 WEB
http://secunia.com/advisories/26642
secunia.com/advisories/27102 WEB
http://secunia.com/advisories/27102
secunia.com/advisories/30158 WEB
http://secunia.com/advisories/30158
secunia.com/advisories/30288 WEB
http://secunia.com/advisories/30288
Software Security Information SECURITY
http://www.debian.org/security/2008/dsa-1572
Software Security Information SECURITY
http://www.debian.org/security/2008/dsa-1578
www.exploit-db.com/exploits/4181 WEB
http://www.exploit-db.com/exploits/4181
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.4
www.php.net/releases/5_2_4.php WEB
http://www.php.net/releases/5_2_4.php
Software Security Information SECURITY
http://www.securityfocus.com/bid/24922
Software Security Information SECURITY
http://www.securityfocus.com/bid/25498
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/2547

Frequently Asked Questions

What is CVE-2007-3806?
CVE-2007-3806 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-3806?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2007-3806?
CVE-2007-3806 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-3806?
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-x5ff-24v2-wj9j",
  "modified" : "2022-05-01T18:17:23Z",
  "published" : "2022-05-01T18:17:23Z",
  "aliases" : [ "CVE-2007-3806" ],
  "details" : "The glob function in PHP 5.2.3 allows context-dependent attackers to cause a denial of service and possibly execute arbitrary code via an invalid value of the flags parameter, probably related to memory corruption or an invalid read on win32 platforms, and possibly related to lack of initialization for a glob structure.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-3806"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/35437"
  }, {
    "type" : "WEB",
    "url" : "http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?r1=1.166&r2=1.167"
  }, {
    "type" : "WEB",
    "url" : "http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?view=log"
  }, {
    "type" : "WEB",
    "url" : "http://osvdb.org/36085"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26085"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26642"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27102"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/30158"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/30288"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2008/dsa-1572"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2008/dsa-1578"
  }, {
    "type" : "WEB",
    "url" : "http://www.exploit-db.com/exploits/4181"
  }, {
    "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.4"
  }, {
    "type" : "WEB",
    "url" : "http://www.php.net/releases/5_2_4.php"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/24922"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/25498"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/2547"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2007-07-17T00:30:00Z"
  }
}