Advisory

GHSA-vjqc-q4mp-2rvf

Also known as: CVE-2026-79752

Summary

CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

Details

Impact
The FunctionsBuilder::cast($field, $dataType), extract($part, $expr), datePart($part, $expr), dateAdd($expr, $value, $unit) methods are vulnerable to SQL injection if user controlled data is supplied to the ($dataType / $part / $unit) parameters.

Patches
5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes

Workarounds
Don't provide user controlled data to these functions/parameters.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-09-17 20:28 UTC
Modified
2026-09-24 14:45 UTC

Affected packages and fixes

cakephp/database

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 4.5.12 (ecosystem)

Fixed versions

4.5.12

Fix

The export has no generic command for this ecosystem.

cakephp/database

Packagist · All systems

Affected

  • introduced 4.6.0, fixed 4.6.5 (ecosystem)

Fixed versions

4.6.5

Fix

The export has no generic command for this ecosystem.

cakephp/database

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.1.9 (ecosystem)

Fixed versions

5.1.9

Fix

The export has no generic command for this ecosystem.

cakephp/database

Packagist · All systems

Affected

  • introduced 5.2.0, fixed 5.2.14 (ecosystem)

Fixed versions

5.2.14

Fix

The export has no generic command for this ecosystem.

cakephp/database

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.3.7 (ecosystem)

Fixed versions

5.3.7

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 0, fixed 4.5.12 (ecosystem)

Fixed versions

4.5.12

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 4.6.0, fixed 4.6.5 (ecosystem)

Fixed versions

4.6.5

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.1.9 (ecosystem)

Fixed versions

5.1.9

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.2.0, fixed 5.2.14 (ecosystem)

Fixed versions

5.2.14

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.3.7 (ecosystem)

Fixed versions

5.3.7

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