GHSA-6hg4-vp5q-47mw: Cakephp/cakephp CakePHP Allows Direct Access Of Vulnerability

MODERATE
Published
Advisory Summary

GHSA-6hg4-vp5q-47mw is a MODERATE cakephp allows direct access of vulnerability (General Security Weakness) affecting Cakephp/cakephp libraries in the Packagist ecosystem. The issue involves cakephp allows direct access of prefixed controller actions. Remediation is available by upgrading affected packages to version 2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.9, 2.6.11, 2.7.2.

GHSA-6hg4-vp5q-47mw at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-6hg4-vp5q-47mw
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Cakephp/cakephp
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-6hg4-vp5q-47mw

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: 2.0.99
Upgrade cakephp/cakephp to 2.0.99
cakephp/cakephp fixed: 2.1.99
Upgrade cakephp/cakephp to 2.1.99
cakephp/cakephp fixed: 2.2.99
Upgrade cakephp/cakephp to 2.2.99
cakephp/cakephp fixed: 2.3.99
Upgrade cakephp/cakephp to 2.3.99
cakephp/cakephp fixed: 2.4.99
Upgrade cakephp/cakephp to 2.4.99
cakephp/cakephp fixed: 2.5.9
Upgrade cakephp/cakephp to 2.5.9
cakephp/cakephp fixed: 2.6.11
Upgrade cakephp/cakephp to 2.6.11
cakephp/cakephp fixed: 2.7.2
Upgrade cakephp/cakephp to 2.7.2
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 GHSA-6hg4-vp5q-47mw, 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 2.0.99), 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 General Security Weakness. 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

Unconventional URL paths would allow direct access to prefixed actions without setting the correct request parameters.

GHSA-6hg4-vp5q-47mw Affected Cakephp/cakephp Versions

8 component(s)
Fixed Versions:
2.0.992.1.992.2.992.3.992.4.992.5.92.6.112.7.2
Product / Package Ecosystem Affected Versions Fixed Version
cakephp/cakephp
Packagist
≥ 2.0.0
< 2.0.99
2.0.99
cakephp/cakephp
Packagist
≥ 2.1.0
< 2.1.99
2.1.99
cakephp/cakephp
Packagist
≥ 2.2.0
< 2.2.99
2.2.99
cakephp/cakephp
Packagist
≥ 2.3.0
< 2.3.99
2.3.99
cakephp/cakephp
Packagist
≥ 2.4.0
< 2.4.99
2.4.99
cakephp/cakephp
Packagist
≥ 2.5.0
< 2.5.9
2.5.9
cakephp/cakephp
Packagist
≥ 2.6.0
< 2.6.11
2.6.11
cakephp/cakephp
Packagist
≥ 2.7.0
< 2.7.2
2.7.2

References

Frequently Asked Questions

What is GHSA-6hg4-vp5q-47mw?
GHSA-6hg4-vp5q-47mw is a security vulnerability in Cakephp/cakephp involving CakePHP allows direct access of prefixed controller actions under General Security Weakness.
Which Cakephp/cakephp versions are affected?
Affected versions include releases prior to 2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.9, 2.6.11, 2.7.2 across affected packages: cakephp/cakephp.
What version fixes GHSA-6hg4-vp5q-47mw?
Upgrading to 2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.9, 2.6.11, 2.7.2 (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 2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.9, 2.6.11, 2.7.2. Upgrade your dependency to 2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.9, 2.6.11, 2.7.2 or later.
What CWE is associated with GHSA-6hg4-vp5q-47mw?
GHSA-6hg4-vp5q-47mw is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-6hg4-vp5q-47mw?
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-6hg4-vp5q-47mw",
  "modified" : "2023-01-20T23:34:05Z",
  "published" : "2023-01-20T23:34:05Z",
  "aliases" : [ ],
  "summary" : "CakePHP allows direct access of prefixed controller actions",
  "details" : "Unconventional URL paths would allow direct access to prefixed actions without setting the correct request parameters.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.99"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.99"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.99"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.99"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.4.99"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.0"
      }, {
        "fixed" : "2.6.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/cakephp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/cakephp/commit/056f24a77428ad35e23cab6840a72b7c25c4ccc0"
  }, {
    "type" : "WEB",
    "url" : "https://bakery.cakephp.org/2015/08/06/cakephp_2_5_9_2_6_10_2_7_2_released.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/cakephp/cakephp/2015-08-06.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cakephp/cakephp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/cakephp/releases/tag/2.5.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/cakephp/releases/tag/2.6.11"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/cakephp/releases/tag/2.7.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-20T23:34:05Z",
    "nvd_published_at" : null
  }
}