CVE-2006-4067: Cakephp/cakephp Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-vc29-mvwv-wpcq
CVSS 6.5
CWE-79
Published
Advisory Summary

CVE-2006-4067 is a MODERATE (CVSS 6.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Cakephp/cakephp libraries in the Packagist ecosystem. The issue involves cross-site scripting (xss) vulnerability in cakephp. Remediation is available by upgrading affected packages to version 1.1.7.3363.

CVE-2006-4067 at a Glance

CVE Identifier CVE-2006-4067
GHSA Identifier GHSA-vc29-mvwv-wpcq
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Cakephp/cakephp
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2006-4067

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

cakephp/cakephp fixed: 1.1.7.3363
Upgrade cakephp/cakephp to 1.1.7.3363
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 cakephp/cakephp

How to Check if You Are Affected

To determine whether your application is affected by CVE-2006-4067, inspect your project dependencies for Cakephp/cakephp:

inspect dependencies for cakephp/cakephp

Analyze the terminal output to locate any version of Cakephp/cakephp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.7.3363), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Cakephp/cakephp, 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

Cross-site scripting (XSS) vulnerability in cake/libs/error.php in CakePHP before 1.1.7.3363 allows remote attackers to inject arbitrary web script or HTML via the URL, which is reflected back in a 404 (\"Not Found\") error page. NOTE: some of these details are obtained from third party information.

CVE-2006-4067 Affected Cakephp/cakephp Versions

1 component(s)
Fixed Versions:
1.1.7.3363
Product / Package Ecosystem Affected Versions Fixed Version
cakephp/cakephp
Packagist
≥ 1.0.1.2708
< 1.1.7.3363
1.1.7.3363

References

Frequently Asked Questions

What is CVE-2006-4067?
CVE-2006-4067 is a security vulnerability in Cakephp/cakephp involving Cross-site scripting (XSS) vulnerability in CakePHP under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Cakephp/cakephp versions are affected?
Affected versions include releases prior to 1.1.7.3363 across affected packages: cakephp/cakephp.
What version fixes CVE-2006-4067?
Upgrading to 1.1.7.3363 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cakephp/cakephp affected?
Yes, cakephp/cakephp is affected in releases prior to 1.1.7.3363. Upgrade your dependency to 1.1.7.3363 or later.
What is the CVSS score of CVE-2006-4067?
CVE-2006-4067 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H.
What CWE is associated with CVE-2006-4067?
CVE-2006-4067 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2006-4067?
Run the dependency tree command: 'inspect dependencies for cakephp/cakephp'. 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-vc29-mvwv-wpcq",
  "modified" : "2023-01-09T20:14:12Z",
  "published" : "2022-05-01T07:15:05Z",
  "aliases" : [ "CVE-2006-4067" ],
  "summary" : "Cross-site scripting (XSS) vulnerability in CakePHP",
  "details" : "Cross-site scripting (XSS) vulnerability in cake/libs/error.php in CakePHP before 1.1.7.3363 allows remote attackers to inject arbitrary web script or HTML via the URL, which is reflected back in a 404 (\\\"Not Found\\\") error page. NOTE: some of these details are obtained from third party information.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.1.2708"
      }, {
        "fixed" : "1.1.7.3363"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.1.6.3264"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2006-4067"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/28256"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cakephp/cakephp"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-09T20:14:12Z",
    "nvd_published_at" : "2006-08-10T00:04:00Z"
  }
}