CVE-2019-11049

mail() may release string with refcount==1 twice

CRITICAL
9.8
CVSS Score
Published: December 23, 2019 at 02:40 AM UTC
Updated: August 17, 2026 at 02:50 PM UTC
4 products affected across 4 vendorsDebian LinuxFedoraPHP· also runs on 1 platform

Using PHP by PHP Group?

Get instant alerts when new vulnerabilities affect PHP - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
CRITICAL9.8
Exploit prediction
EPSS 4%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

PHP· PHPdrupal
95%
7.3.0 ≤ v ≤ 7.3.137.3.x ≤ v < 7.3.137.4.x ≤ v < 7.4.17.3.x7.4.07.4.x
Affected range stops below 7.3.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.4.1, so it looks safe — our inference, not a vendor statement
microsoft-windows (environment)
v < 5.19.0
Affected range stops below 5.19.0, so it looks safe — our inference, not a vendor statement

Runs on — not affected

The affected product only carries this flaw when running on these platforms. The platforms themselves are not vulnerable.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card