CVE-2026-77634: CakePHP: SmtpTransport vulnerable to CRLF header injection

Published Aug 24, 2026
·
Updated

CakePHP is a rapid development framework for PHP. Prior to versions 4.5.12, 4.6.5, 5.1.8, 5.2.14, and 5.3.7 on their respective release lines, custom mail headers added with Message::setHeaders() or Message::addHeaders() do not have CRLF bytes removed, allowing header injection when user-controlled data is used in message headers. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.8, 5.2.14, and 5.3.7.

Affected Software

2 affected components
CakePHP CakePHP<4.5.12, <4.6.5, <5.1.8, <5.2.14, <5.3.7
CakePHP SmtpTransport<4.5.12, <4.6.5, <5.1.8, <5.2.14, <5.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 4.5.12
  2. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 4.6.5
  3. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.1.8
  4. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.2.14
  5. Upgrade

    Upgrade CakePHP to a version that resolves this vulnerability.

    Fixed in 5.3.7

Event History

Aug 24, 2026
CVE Published
via MITRE·08:33 PM
Data Sourced
via MITRE·08:33 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions are required for exploitation?

An application must use CakePHP's Message::setHeaders() or Message::addHeaders() to place user-controlled data into custom mail headers. The attacker must be able to supply CRLF bytes through that header value.

2

Which CakePHP versions are affected and which versions contain the fix?

Affected versions are those before 4.5.12, 4.6.5, 5.1.8, 5.2.14, and 5.3.7 on their respective release lines. Upgrade to the applicable listed version or a later release.

3

How can teams identify potentially vulnerable application code?

Review uses of Message::setHeaders() and Message::addHeaders(), especially where custom header values are derived from request parameters, form fields, API input, or other user-controlled sources. Those paths are relevant because CRLF bytes were not removed from custom headers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203