What’s Vulnerable › Vulnerabilities
CVE-2019-11049: mail() may release string with refcount==1 twice
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2019-12-23 · updated 2026-08-17
- Weakness: CWE-415
Description
In PHP versions 7.3.x below 7.3.13 and 7.4.0 on Windows, when supplying custom headers to mail() function, due to mistake introduced in commit 78f4b4a2dcf92ddbccea1bb95f8390a18ac3342e, if the header is supplied in lowercase, this can result in double-freeing certain memory locations.
Affected products
- Debian Linux: 10.0
- Fedoraproject Fedora: 30, 31
- PHP: from 7.3.0 through 7.3.13; 7.4.0
- Tenable, Inc. Security Center: before 5.19.0 — fixed in 5.19.0
How to fix
Upgrade to a fixed version: Tenable, Inc. Security Center 5.19.0. Check the vendor advisory for mitigations.
References
- https://bugs.php.net/bug.php?id=78943
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/
- https://seclists.org/bugtraq/2020/Feb/27
- https://security.netapp.com/advisory/ntap-20200103-0002/
- https://www.debian.org/security/2020/dsa-4626
- https://www.tenable.com/security/tns-2021-14
- https://bugs.php.net/bug.php?id=78943
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/
- https://seclists.org/bugtraq/2020/Feb/27
- https://security.netapp.com/advisory/ntap-20200103-0002/
Get alerted when CVE-2019-11049 or the next vulnerability affects your stack