GHSA-fxf7-vhh8-7vpq: SQL Injection

Published Sep 8, 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.

Affected Software

6 affected componentsFixes available
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 to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.1.10
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.2.15
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.3.7
  10. Configuration

    Ensure the value passed to the FunctionsBuilder::jsonValue($field, $jsonPath) method's $jsonPath parameter is not derived from user input; treat $jsonPath as non-user-controlled to prevent SQL injection.

    FunctionsBuilder::jsonValue($field, $jsonPath) (Postgres driver) jsonPath parameter handling = Do not supply user-controlled data to $jsonPath

Event History

Sep 8, 2026
Advisory Published
via GitHub·08:56 PM
Data Sourced
via GitHub·08:56 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

What condition makes an application exploitable?

Exploitation requires user-controlled data to reach the $jsonPath parameter of FunctionsBuilder::jsonValue($field, $jsonPath) while using the Postgres driver. The issue is SQL injection through that parameter.

2

Which releases contain fixes?

The advisory lists patches in versions 5.1.10, 5.2.15, and 5.3.7.

3

What can be done if upgrading cannot happen immediately?

Do not pass user-controlled data to FunctionsBuilder::jsonValue() or its $jsonPath parameter. Ensure JSON paths supplied to this function are application-defined rather than derived from request input.

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