Security Bulletin
This security bulletin contains one low risk vulnerability.
EUVDB-ID: #VU6975
Risk: Low
CVSSv4.0: 0.5 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear]
CVE-ID: N/A
CWE-ID:
CWE-200 - Information exposure
Exploit availability: No
DescriptionThe vulnerability allows an attacker to gain access to potentially sensitive information.
The vulnerability exists within the implementation of the mail() PHP function in win32/sendmail.c, when parsing email headers for CC and BCC lines. A local or remote attacker with ability to modify email headers can send a copy of email messages to arbitrary email address.
Example:
$headers = implode("\r\n", [ "Cc: test2@example.com", "X-Test-Cc: line 2", "X-Test-Aabbcc: test3@example.com", "X-Line-4: line 4" ]); mail("test@example.com", "Subject", "Body", $headers);
Actual recipients:
Recipients: test@example.com, test2@example.com, test3@example.comMitigation
Update to version 7.0.20 or 7.1.6.
PHP: 7.0.0 - 7.1.4
CPE2.3 External linkshttps://bugs.php.net/bug.php?id=74510
https://git.php.net/?p=php-src.git;a=commit;h=20a608d9dae4c758bf608e10fd2cdb9cc1559625
Q & A
Can this vulnerability be exploited remotely?
No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.