CakePHP: SmtpTransport vulnerable to CRLF header injection
cakephp
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| cakephp/cakephp Packagist |
|
|
cakephp
| Product | Affected | Fixed in |
|---|---|---|
| cakephp/cakephp Packagist |
|
|
5.2.145.3.7CakePHP 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.
From the CVE record · GitHub_M
CakePHP does not remove CRLF bytes from custom mail headers added through Message::setHeaders() or Message::addHeaders(). An attacker can inject mail headers if they can control data used in those headers. The input does not specify whether authentication or user interaction is required.
Teams using the Packagist package cakephp/cakephp in versions >=4.5.0 <4.5.12, >=4.6.0 <4.6.5, >=5.0.0 <5.1.9, >=5.2.0 <5.2.14, or >=5.3.0 <5.3.7 should check their deployments.