CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 proof of concept on GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
CakePHP is a rapid development framework for PHP. Prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7, FunctionsBuilder::cast, FunctionsBuilder::extract, FunctionsBuilder::datePart, and FunctionsBuilder::dateAdd in src/Database/FunctionsBuilder.php accept user-controlled dataType, part, or unit values and incorporate them into generated SQL as unescaped structural fragments. An application that passes untrusted input to these parameters can permit SQL injection with confidentiality, integrity, and availability impact according to the database connection's privileges. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- cakephp cakephp
fixed in 4.5.12; From 4.6.0 · fixed in 4.6.5; From 5.0.0 · fixed in 5.1.9; From 5.2.0 · fixed in 5.2.14; From 5.3.0 · fixed in 5.3.7
- cakephp/databasePackagist
From 3.0.0 · fixed in 4.5.12
- cakephp/databasePackagist
From 4.6.0 · fixed in 4.6.5
- cakephp/databasePackagist
From 5.0.0 · fixed in 5.1.9
- cakephp/databasePackagist
From 5.2.0 · fixed in 5.2.14
- cakephp/databasePackagist
From 5.3.0 · fixed in 5.3.7
- cakephp/cakephpPackagist
fixed in 4.5.12
- cakephp/cakephpPackagist
From 4.6.0 · fixed in 4.6.5
- cakephp/cakephpPackagist
From 5.0.0 · fixed in 5.1.9
- cakephp/cakephpPackagist
From 5.2.0 · fixed in 5.2.14
- cakephp/cakephpPackagist
From 5.3.0 · fixed in 5.3.7