CVE-2006-4020: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-ccmc-8626-x545
Published
Advisory Summary

CVE-2006-4020 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-2006-4020 at a Glance

CVE Identifier CVE-2006-4020
GHSA Identifier GHSA-ccmc-8626-x545
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-2006-4020

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-2006-4020, 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

scanf.c in PHP 5.1.4 and earlier, and 4.4.3 and earlier, allows context-dependent attackers to execute arbitrary code via a sscanf PHP function call that performs argument swapping, which increments an index past the end of an array and triggers a buffer over-read.

References

NVD — CVE-2006-4020 NVD
https://nvd.nist.gov/vuln/detail/CVE-2006-4020
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11062
bugs.php.net/bug.php WEB
http://bugs.php.net/bug.php?id=38322
rhn.redhat.com/errata/rhsa-2006-06... WEB
http://rhn.redhat.com/errata/RHSA-2006-0688.html
rhn.redhat.com/errata/rhsa-2006-07... WEB
http://rhn.redhat.com/errata/RHSA-2006-0736.html
secunia.com/advisories/21403 WEB
http://secunia.com/advisories/21403
secunia.com/advisories/21467 WEB
http://secunia.com/advisories/21467
secunia.com/advisories/21546 WEB
http://secunia.com/advisories/21546
secunia.com/advisories/21608 WEB
http://secunia.com/advisories/21608
secunia.com/advisories/21683 WEB
http://secunia.com/advisories/21683
secunia.com/advisories/21768 WEB
http://secunia.com/advisories/21768
secunia.com/advisories/21847 WEB
http://secunia.com/advisories/21847
secunia.com/advisories/22004 WEB
http://secunia.com/advisories/22004
secunia.com/advisories/22039 WEB
http://secunia.com/advisories/22039
secunia.com/advisories/22069 WEB
http://secunia.com/advisories/22069
secunia.com/advisories/22440 WEB
http://secunia.com/advisories/22440
secunia.com/advisories/22487 WEB
http://secunia.com/advisories/22487
secunia.com/advisories/22538 WEB
http://secunia.com/advisories/22538
secunia.com/advisories/23247 WEB
http://secunia.com/advisories/23247
Software Security Information SECURITY
http://security.gentoo.org/glsa/glsa-200608-28.xml
Software Security Information SECURITY
http://securityreason.com/securityalert/1341
Software Security Information SECURITY
http://securitytracker.com/id?1016984
Software Security Information SECURITY
http://support.avaya.com/elmodocs2/security/ASA-2006-221.htm
Software Security Information SECURITY
http://support.avaya.com/elmodocs2/security/ASA-2006-222.htm
Software Security Information SECURITY
http://support.avaya.com/elmodocs2/security/ASA-2006-223.htm
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDKSA-2006:144
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2006_19_sr.html
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2006_20_sr.html
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2006_22_sr.html
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2006_52_php.html
www.php.net/changelog-5.php WEB
http://www.php.net/ChangeLog-5.php#5.1.5
www.php.net/release_5_1_5.php WEB
http://www.php.net/release_5_1_5.php
www.plain-text.info/sscanf_bug.txt WEB
http://www.plain-text.info/sscanf_bug.txt
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2006-0669.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2006-0682.html
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/442438/30/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/bid/19415
www.ubuntu.com/usn/usn-342-1 WEB
http://www.ubuntu.com/usn/usn-342-1
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2006/3193

Frequently Asked Questions

What is CVE-2006-4020?
CVE-2006-4020 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-2006-4020?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2006-4020?
CVE-2006-4020 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2006-4020?
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-ccmc-8626-x545",
  "modified" : "2022-05-03T03:16:19Z",
  "published" : "2022-05-03T03:16:19Z",
  "aliases" : [ "CVE-2006-4020" ],
  "details" : "scanf.c in PHP 5.1.4 and earlier, and 4.4.3 and earlier, allows context-dependent attackers to execute arbitrary code via a sscanf PHP function call that performs argument swapping, which increments an index past the end of an array and triggers a buffer over-read.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2006-4020"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11062"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.php.net/bug.php?id=38322"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2006-0688.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2006-0736.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/21403"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/21467"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/21546"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/21608"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/21683"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/21768"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/21847"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/22004"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/22039"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/22069"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/22440"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/22487"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/22538"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/23247"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200608-28.xml"
  }, {
    "type" : "WEB",
    "url" : "http://securityreason.com/securityalert/1341"
  }, {
    "type" : "WEB",
    "url" : "http://securitytracker.com/id?1016984"
  }, {
    "type" : "WEB",
    "url" : "http://support.avaya.com/elmodocs2/security/ASA-2006-221.htm"
  }, {
    "type" : "WEB",
    "url" : "http://support.avaya.com/elmodocs2/security/ASA-2006-222.htm"
  }, {
    "type" : "WEB",
    "url" : "http://support.avaya.com/elmodocs2/security/ASA-2006-223.htm"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDKSA-2006:144"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2006_19_sr.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2006_20_sr.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2006_22_sr.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2006_52_php.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.php.net/ChangeLog-5.php#5.1.5"
  }, {
    "type" : "WEB",
    "url" : "http://www.php.net/release_5_1_5.php"
  }, {
    "type" : "WEB",
    "url" : "http://www.plain-text.info/sscanf_bug.txt"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2006-0669.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2006-0682.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/442438/30/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/19415"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-342-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2006/3193"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2006-08-08T20:04:00Z"
  }
}