インシデント解説

CakePHP SQL injection (CVE-2026-119418 / 119419): what to check in custom-built business systems

Member sites, booking systems and internal business systems built by outside developers are often made with a PHP "framework" (a foundation for building web systems) called CakePHP. On October 30, 2026, two SQL injection vulnerabilities (CVE-2026-119418 and CVE-2026-119419) were disclosed in CakePHP. Each is rated 9.2 out of 10. This article explains which designs are at risk, how to check whether you are affected, and what to tell your developer, step by step (as of November 4, 2026).

Home›Blog›CakePHP SQL injection
Published 2026-11-04 | Category: インシデント解説 | HAYTECH SOLUTIONS
Key points
  • 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.

ItemCVE-2026-119418CVE-2026-119419
TypeSQL injectionSQL injection
LocationWindow function range settings (WindowExpression range and frame)Collation settings (StringExpression and IdentifierExpression)
SeverityCVSS v4 9.2 (Critical)CVSS v4 9.2 (Critical)
AffectedCakePHP 5.4.3 and earlierCakePHP 5.4.3 and earlier
DisclosedOctober 30, 2026October 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.

A framework update tends to have a bigger impact than a plugin update. Ask your developer to test it in a test environment before putting it into production.

What to tell your developer

If a developer maintains your system, these four sentences will speed things up.

  1. "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."
  2. "Please check whether any screen input is passed straight into window function ranges or collation settings."
  3. "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."
  4. "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

  1. Today: check the contract or specification to see whether your system is built with CakePHP
  2. Today or tomorrow: send the four points above to your developer and ask for the version and whether such code exists
  3. 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
  4. 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
IT SUPPORT

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.

Free consultation & inquiries

In a 30-minute online consultation, we’ll check together whether this article applies to your environment. A consultation alone is perfectly fine.

Contact us (free consultation)

You can also book a 30-minute online consultation with this form.

Please read our Privacy Policy before sending. We do not ask for your phone number.

Any IT question is welcome.
Feel free to get in touch.

Free 30-minute consultation ›Security maintenance details ›