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

Published Aug 24, 2026
·
Updated

Impact The FunctionsBuilder::jsonValue($field, $jsonPath) methods with the Postgres driver is vulnerable to SQL injection if user controlled data is supplied to the $jsonPath parameter.

Patches 5.1.10, 5.2.15, 5.3.7

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

Other sources

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.

NVD

Affected Software

7 affected componentsFixes available
CakePHP CakePHP<5.1.10, <5.2.15, <5.3.7
composer/cakephp/database>=5.1.0<5.1.10
5.1.10
composer/cakephp/database>=5.2.0<5.2.15
5.2.15
composer/cakephp/database>=5.3.0<5.3.7
5.3.7
composer/cakephp/cakephp>=5.1.0<5.1.10
5.1.10
composer/cakephp/cakephp>=5.2.0<5.2.15
5.2.15
composer/cakephp/cakephp>=5.3.0<5.3.7
5.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/cakephp/database to a version that resolves this vulnerability.

    Fixed in 5.1.10
  2. Upgrade

    Upgrade composer/cakephp/database to a version that resolves this vulnerability.

    Fixed in 5.2.15
  3. Upgrade

    Upgrade composer/cakephp/database to a version that resolves this vulnerability.

    Fixed in 5.3.7
  4. Upgrade

    Upgrade composer/cakephp/cakephp to a version that resolves this vulnerability.

    Fixed in 5.1.10
  5. Upgrade

    Upgrade composer/cakephp/cakephp to a version that resolves this vulnerability.

    Fixed in 5.2.15
  6. Upgrade

    Upgrade composer/cakephp/cakephp to a version that resolves this vulnerability.

    Fixed in 5.3.7
  7. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.1.10
  8. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.2.15
  9. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.3.7
  10. Configuration

    Do not provide user controlled data to FunctionsBuilder::jsonValue($field, $jsonPath) when using the PostgresDriver; ensure the $jsonPath argument is not derived from user input.

    CakePHP FunctionsBuilder::jsonValue() (PostgresDriver) Do not pass user-controlled data to jsonPath parameter = Ensure $jsonPath is not user-controlled

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
Sep 8, 2026
Advisory Published
via GitHub·08:56 PM
Data Sourced
via GitHub·08:56 PM
DescriptionWeaknessAffected Software

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