CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
cakephp · cakephp/database
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| cakephp/cakephp Packagist |
|
|
| cakephp/database Packagist |
cakephp · cakephp/database
| Product | Affected | Fixed in |
|---|---|---|
| cakephp/cakephp Packagist |
|
|
| cakephp/database Packagist |
≥ 5.3.0 · < 5.3.7≥ 5.2.0 · < 5.2.15≥ 5.1.0 · < 5.1.10
|
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.
From the CVE record · GitHub_M
FunctionsBuilder::jsonValue() is vulnerable to SQL injection when used with PostgresDriver and user-controlled data is supplied to its jsonPath parameter. The input does not specify whether exploitation requires network access, authentication, or user interaction.
Check Packagist installations of cakephp/cakephp or cakephp/database on versions >=5.1.0 <5.1.10, >=5.2.0 <5.2.15, or >=5.3.0 <5.3.7.