CVE-2026-77635: CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver

Published Aug 24, 2026
·
Updated

CakePHP is a rapid development framework for PHP. Prior to versions 5.1.10, 5.2.15, and 5.3.7 on their respective release lines, FunctionsBuilder::jsonValue() with PostgresDriver is vulnerable to SQL injection when user-controlled data is supplied to the jsonPath parameter. This issue is fixed in versions 5.1.10, 5.2.15, and 5.3.7.

Affected Software

1 affected component
CakePHP CakePHP<5.1.10, <5.2.15, <5.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.1.10
  2. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.2.15
  3. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.3.7

Event History

Aug 24, 2026
CVE Published
via MITRE·08:30 PM
Data Sourced
via MITRE·08:30 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Deployments using CakePHP with PostgresDriver are affected if they use FunctionsBuilder::jsonValue() and supply user-controlled data to its jsonPath parameter. The issue affects versions before 5.1.10, 5.2.15, and 5.3.7 on their respective release lines.

2

What must an attacker be able to control to exploit this issue?

An attacker must be able to influence the jsonPath argument passed to FunctionsBuilder::jsonValue() in an application using PostgresDriver. The provided data does not establish that a default application configuration exposes such a path.

3

How can I remediate the issue?

Upgrade to CakePHP 5.1.10, 5.2.15, or 5.3.7, as appropriate for the release line in use. If upgrading cannot happen immediately, do not pass user-controlled values into the jsonPath parameter.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203