CVE-2006-3360: Phpsysinfo/phpsysinfo PhpSysInfo Allows Remote Attackers To Vulnerability

MODERATE
Advisory Identifier: GHSA-2wxv-3g4v-p76p
CWE-22
Published
Advisory Summary

CVE-2006-3360 is a MODERATE phpsysinfo allows remote attackers to vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Phpsysinfo/phpsysinfo libraries in the Packagist ecosystem. The issue involves phpsysinfo allows remote attackers to determine the existence of arbitrary files via a .. (dot dot) sequence. Remediation is available by upgrading affected packages to version 3.2.5.

CVE-2006-3360 at a Glance

CVE Identifier CVE-2006-3360
GHSA Identifier GHSA-2wxv-3g4v-p76p
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Phpsysinfo/phpsysinfo
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2006-3360

To remediate this vulnerability, upgrade all affected Phpsysinfo/phpsysinfo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

phpsysinfo/phpsysinfo fixed: 3.2.5
Upgrade phpsysinfo/phpsysinfo to 3.2.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for phpsysinfo/phpsysinfo

How to Check if You Are Affected

To determine whether your application is affected by CVE-2006-3360, inspect your project dependencies for Phpsysinfo/phpsysinfo:

inspect dependencies for phpsysinfo/phpsysinfo

Analyze the terminal output to locate any version of Phpsysinfo/phpsysinfo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Phpsysinfo/phpsysinfo, 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

Directory traversal vulnerability in index.php in phpSysInfo prior to 3.2.5 allows remote attackers to determine the existence of arbitrary files via a .. (dot dot) sequence and a trailing null (%00) byte in the lng parameter, which will display a different error message if the file exists.

CVE-2006-3360 Affected Phpsysinfo/phpsysinfo Versions

1 component(s)
Fixed Versions:
3.2.5
Product / Package Ecosystem Affected Versions Fixed Version
phpsysinfo/phpsysinfo
Packagist
< 3.2.5
3.2.5

References

Frequently Asked Questions

What is CVE-2006-3360?
CVE-2006-3360 is a security vulnerability in Phpsysinfo/phpsysinfo involving phpSysInfo allows remote attackers to determine the existence of arbitrary files via a .. (dot dot) sequence under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Phpsysinfo/phpsysinfo versions are affected?
Affected versions include releases prior to 3.2.5 across affected packages: phpsysinfo/phpsysinfo.
What version fixes CVE-2006-3360?
Upgrading to 3.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is phpsysinfo/phpsysinfo affected?
Yes, phpsysinfo/phpsysinfo is affected in releases prior to 3.2.5. Upgrade your dependency to 3.2.5 or later.
What CWE is associated with CVE-2006-3360?
CVE-2006-3360 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Packagist dependencies for CVE-2006-3360?
Run the dependency tree command: 'inspect dependencies for phpsysinfo/phpsysinfo'. 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-2wxv-3g4v-p76p",
  "modified" : "2023-03-30T20:57:08Z",
  "published" : "2022-05-01T07:08:17Z",
  "aliases" : [ "CVE-2006-3360" ],
  "summary" : "phpSysInfo allows remote attackers to determine the existence of arbitrary files via a .. (dot dot) sequence",
  "details" : "Directory traversal vulnerability in index.php in phpSysInfo prior to 3.2.5 allows remote attackers to determine the existence of arbitrary files via a .. (dot dot) sequence and a trailing null (%00) byte in the lng parameter, which will display a different error message if the file exists.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpsysinfo/phpsysinfo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2006-3360"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpsysinfo/phpsysinfo/issues/107"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpsysinfo/phpsysinfo/issues/368#issuecomment-1380842745"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpsysinfo/phpsysinfo/commit/60b5bbb5d1cc17f44050e99a3e746f55a4fd4e18"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/27527"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/phpsysinfo/phpsysinfo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-30T20:57:08Z",
    "nvd_published_at" : "2006-07-06T20:05:00Z"
  }
}