All reports
High

CakePHP: SmtpTransport vulnerable to CRLF header injection

Affected versions

Affected versions
>= 5.3.0, < 5.3.7
Fixed version
5.3.7
Affected versions
>= 5.2.0, < 5.2.14
Fixed version
5.2.14
Affected versions
>= 4.5.0, < 4.5.12
Fixed version
4.5.12
Affected versions
>= 4.6.0, < 4.6.5
Fixed version
4.6.5
Affected versions
>= 5.0.0, < 5.1.8
Fixed version
5.1.9

Exploitation

CVE-2026-77634

Probability of exploitation in the next 30 days: 0.31%

FIRST EPSS · 2026-11-23

Description

Impact

Custom mail headers added with Message::setHeaders() or addHeaders() do not have CRLF replaced allowing header injection if user controlled data is added to message headers without stripping CRLF bytes.

Patches

5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes for this issue.

Workarounds

You can strip CRLF bytes from email header values before setting header values.

Links

Credits

  • unknownhad