{"id":"CVE-2019-11049","published":"2019-12-23T02:40:18Z","modified":"2024-09-16T20:47:57Z","title":"mail() may release string with refcount==1 twice","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04218,"percentile":0.91225,"provenance":"source"},"cwes":[{"id":"CWE-415","name":"Double Free"}],"references":[{"url":"https://bugs.php.net/bug.php?id=78943","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20200103-0002/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://seclists.org/bugtraq/2020/Feb/27","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://www.debian.org/security/2020/dsa-4626","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]}],"priority":{"score":22.8,"factors":[{"name":"EPSS percentile","points":18.25},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 7.3.x, < 7.3.13",">= 7.4.x, < 7.4.1"]}],"summary":{"text":"The mail() function in PHP 7.3.x (below 7.3.13) and 7.4.0 on Windows contains a double-free bug, introduced by a specific commit, that is triggered when custom headers are supplied in lowercase. An attacker able to reach the mail() call with attacker-influenced custom headers can trigger the double-free over the network without authentication or user interaction, though exploitation is considered high complexity and the resulting impact is mainly memory corruption leading to integrity loss and denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:43:50Z"},"euvd":{"id":"EUVD-2019-2757","exploited":false,"provenance":"source"}}