SQL Injection Affecting cakephp/cakephp package, versions <4.2.12>=4.3.0-RC1, <4.3.11>=4.4.0-RC1, <4.4.10


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CAKEPHPCAKEPHP-3233635
  • published18 Jan 2023
  • disclosed18 Jan 2023
  • creditUnknown

Introduced: 18 Jan 2023

CVE-2023-22727  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade cakephp/cakephp to version 4.2.12, 4.3.11, 4.4.10 or higher.

Overview

cakephp/cakephp is a rapid development framework for PHP which uses commonly known design patterns like Associative Data Mapping, Front Controller, and MVC.

Affected versions of this package are vulnerable to SQL Injection in the Cake\Database\Query::limit() and Cake\Database\Query::offset() functions, due to accepting unsanitized user input.

Workaround

This vulnerability can be avoided by using the Pagination library.

CVSS Scores

version 3.1