cakephp/cakephp is vulnerable to SQL Injection
92
CVE Score
Critical
SQL Injection
Before the fix, WindowExpression::range() and frame() accepted caller-supplied string offsets and frame directions without validation, and the generated OVER clause spliced those strings raw into the frame SQL, so a client who can reach application code that forwards request input into a window frame could inject SQL that runs with the database connection's privileges. Only applications that build window frames from dynamic request values are exposed. The fix rejects offsets and directions that are not simple alphanumeric strings by calling QueryExpression::ensureSimpleString().
Upgrade the cakephp/cakephp package to a fixed release on your branch: 5.2.16, 5.3.8, 5.4.4.
You are affected if you are using a version that falls within the vulnerable range and pass request input as string offsets or directions into WindowExpression::range() or frame() without validating it.
4.1.0 - 5.2.15
Fixed in 5.2.165.3.0 - 5.3.7
Fixed in 5.3.85.4.0 - 5.4.3
Fixed in 5.4.4cakephp/cakephp is vulnerable to SQL Injection in versions 4.1.0 - 5.2.15, 5.3.0 - 5.3.7 and 5.4.0 - 5.4.3.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.