- Two SQL injection vulnerabilities have been disclosed in the PHP framework CakePHP 5.4.3 and earlier. Both are CVSS v4 9.2 (critical).
- Systems are at risk when values entered on screen are passed straight into "window function" or "collation (COLLATE)" settings.
- If exploited, data in the database could be read, changed or deleted (within the rights of the account the system uses to connect).
- CakePHP 5.4.4, released on November 1, 2026, includes a fix that reduces SQL injection in the database expression parts.
- It is hard to judge on your own, so the shortcut is to ask your developer for the CakePHP version and whether such code exists.
What was disclosed
CakePHP is software that serves as the foundation for building web systems in PHP. It provides common functions such as login, reading and writing the database, and showing screens, so it has long been used for member sites and business systems built by outside developers.
The key points of the two vulnerabilities are as follows.
| Item | CVE-2026-119418 | CVE-2026-119419 |
|---|---|---|
| Type | SQL injection | SQL injection |
| Location | Window function range settings (WindowExpression range and frame) | Collation settings (StringExpression and IdentifierExpression) |
| Severity | CVSS v4 9.2 (Critical) | CVSS v4 9.2 (Critical) |
| Affected | CakePHP 5.4.3 and earlier | CakePHP 5.4.3 and earlier |
| Disclosed | October 30, 2026 | October 30, 2026 |
A CVE is the worldwide ID for each vulnerability, and CVSS is a 0-10 severity score. SQL injection is an attack that slips fragments of SQL (commands sent to the database) into input fields to make the system do things it should not.
Which designs are at risk
Both are problems in CakePHP's "parts that build database commands": some of them put received values into the command without checking them.
- CVE-2026-119418: values are not checked where the range of a "window function" (often used for totals, such as how many rows before and after to include) is set
- CVE-2026-119419: the name of the sorting and comparison rule for text (collation, COLLATE) is put into the command without quotation marks
The important point is that a system is only targeted when values entered by users on screen are passed straight into these settings. The published score breakdown also says "attack requirements are present". Ordinary search and list screens often do not match, but admin and report screens that let users choose sort or total conditions may match, depending on how they are built.
If a system matches, an attacker could read customer data, or change or delete data, within the rights of the account the system uses to connect to the database.
How to tell whether your system uses CakePHP
- Does your contract or specification with the developer mention "CakePHP"?
- When you open the system, is the name of the cookie saved in your browser "CAKEPHP"? (if the default setting was kept)
- Is there a folder called "cakephp" in the source code you received from the developer?
- Are there other systems built by the same developer?
You can see cookie names in the browser's developer tools. The name may have been changed in the settings, so asking the developer is the sure way.
How to fix it: update to CakePHP 5.4.4
The release notes of CakePHP 5.4.4, published on November 1, 2026, list a fix that "reduced potential SQL injection in database expression objects". If you use the 5.x line, the basic fix is to update to 5.4.4 or later.
Take care if you use an older line (4.x or 3.x). The disclosure only says "5.4.3 and earlier", and it does not say whether the older lines will get the same fix. Systems that have stayed on an older line for a long time often have other old parts too, so it is efficient to check them together with the EOL inventory checklist. If your PHP version itself is old, see also what to do about the PHP vulnerability.
What to tell your developer
If a developer maintains your system, these four sentences will speed things up.
- "Regarding the CakePHP vulnerabilities CVE-2026-119418 and CVE-2026-119419 (5.4.3 and earlier affected, CVSS 9.2), please tell us whether our system uses CakePHP and which version."
- "Please check whether any screen input is passed straight into window function ranges or collation settings."
- "If it is 5.x, please give us a quote and schedule for updating to 5.4.4 or later. If it is 4.x or older, please propose how to handle it."
- "Please also check that the database account the system uses does not have more rights than it needs."
If your maintenance contract has ended or the developer no longer exists, you can bring in an outside specialist such as us for a one-off job.
What to do, in order
- Today: check the contract or specification to see whether your system is built with CakePHP
- Today or tomorrow: send the four points above to your developer and ask for the version and whether such code exists
- This week or next: if it is 5.x, update to 5.4.4 or later. If it is an older line, decide whether to update or rebuild
- Going forward: keep a list of the frameworks you use and their versions. You can start checking old software visible from the internet with a free check
Not sure what your own environment runs on?
With our Security & IT Support, you can hand over everything from inventorying the technologies and versions you use to checking them against vulnerability information, applying fixes and verifying after updates. It is a monthly subscription (quasi-mandate contract) of 5–15 hours a month from US$200/month, with Japanese-language support and only a 2-hour time difference from Japan.


