Advisory

GHSA-wpvj-hjcr-h3p2

Also known as: CVE-2026-48820

Summary

CakePHP: View::element() is missing a path containment check

Details

Impact
View::_getElementFileName() does not check that the resolved element path is within the application/plugin view template paths. When element names are created with specifically crafted user-supplied data this weakness can be leveraged to include other PHP files on the server.

Patches
Patched releases are available in 5.3.6, 5.2.13, 5.1.7, 4.6.4, and 4.5.11.

Workarounds
If developers are not using user-supplied data in element names, no action is required.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-06-26 21:00 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.3.6 (ecosystem)

Fixed versions

5.3.6

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.2.0, fixed 5.2.13 (ecosystem)

Fixed versions

5.2.13

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.1.7 (ecosystem)

Fixed versions

5.1.7

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 4.6.0, fixed 4.6.4 (ecosystem)

Fixed versions

4.6.4

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 0, fixed 4.5.11 (ecosystem)

Fixed versions

4.5.11

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences