GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Check your stack
GHSA-6g8q-qfpv-57wpcritical9.8

CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection

Impact

The Cake\Database\Query::limit() and Cake\Database\Query::offset() methods are vulnerable to SQL injection if passed un-sanitized user request data.

Source excerpt · OSV

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

Affected rangeRecorded fix
From 4.2.0 before 4.2.12Ecosystem versions4.2.12
From 4.3.0 before 4.3.11Ecosystem versions4.3.11
From 4.4.0 before 4.4.10Ecosystem versions4.4.10

Version evidence: OSV · GHSA-6g8q-qfpv-57wp

View original version evidence (33 explicit versions)
Affected rangeRecorded fix
From 4.2.0 before 4.2.12Ecosystem versions4.2.12
From 4.3.0 before 4.3.11Ecosystem versions4.3.11
From 4.4.0 before 4.4.10Ecosystem versions4.4.10

Version evidence: OSV · GHSA-6g8q-qfpv-57wp

View original version evidence (33 explicit versions)

Original source description

Impact

The Cake\Database\Query::limit() and Cake\Database\Query::offset() methods are vulnerable to SQL injection if passed un-sanitized user request data.

Patches

This issue has been fixed in 4.2.12, 4.3.11, 4.4.10

Workarounds

Using CakePHP's Pagination library will mitigate this issue, as will validating or casting parameters to these methods.

References

https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html

References