Intel

AIKIDO-2026-625900

cakephp/cakephp is vulnerable to CRLF Injection

CRLF InjectionCVE-2026-77634 Published 3 days ago

65

Medium Risk

This Affects:

PHPcakephp/cakephp
4.5.0 - 4.5.11
Fixed in 4.5.12
4.6.0 - 4.6.4
Fixed in 4.6.5
5.0.0 - 5.1.8
Fixed in 5.1.9
5.2.0 - 5.2.13
Fixed in 5.2.14
5.3.0 - 5.3.6
Fixed in 5.3.7
Are you affected? Scan for Free

TL;DR

CakePHP's mailer builds outgoing message headers from values passed to Message::setHeaders() and addHeaders() without stripping carriage-return and line-feed characters. When externally influenced data reaches these methods, embedded CRLF sequences split the header block and inject additional headers or body content into the email. This enables email header injection through the SMTP transport. The fix neutralizes CRLF sequences in header values before they are written to the message.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you pass externally controlled data into custom email headers via Message::setHeaders() or addHeaders().

Background info

cakephp/cakephp is vulnerable to CRLF Injection in versions 4.5.0 - 4.5.11, 4.6.0 - 4.6.4, 5.0.0 - 5.1.8, 5.2.0 - 5.2.13 and 5.3.0 - 5.3.6.

How to fix this

Upgrade the cakephp/cakephp library to the patch version.