CVE-2019-11049 mail() may release string with refcount==1 twice

Medium 6.5 Published Updated

A double-free vulnerability in PHP's mail() function on Windows allows attackers to potentially execute arbitrary code or cause a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-11049?

CVE-2019-11049 is a medium-severity use after free vulnerability in Debian Debian Linux, published on 23 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-415

Which versions are affected by CVE-2019-11049?

It affects 4 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Php Php, Tenable Security Center.

How do I fix CVE-2019-11049?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2019-11049 being exploited?

There is no known exploitation of CVE-2019-11049 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as GHSA-h3jj-5ghg-r32j.

Is CVE-2019-11049 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free