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

Published Dec 17, 2019
·
Updated

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

Other sources

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 Software

13 affected componentsFixes available
debian/php7.3
7.3.31-1~deb10u17.3.31-1~deb10u5
PHP PHP<7.3.13
7.3.13
PHP PHP>=7.3.0<=7.3.13
PHP PHP=7.4.0
Microsoft Windows
Fedoraproject Fedora=30
Fedoraproject Fedora=31
Debian Debian Linux=10.0
Tenable SecurityCenter<5.19.0
All of the following
Any of the following
PHP PHP>=7.3.0<=7.3.13
PHP PHP=7.4.0
Microsoft Windows
Tenable Security Center<5.19.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/php7.3 to a version that resolves this vulnerability.

    Fixed in 7.3.31-1~deb10u1Fixed in 7.3.31-1~deb10u5
  2. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.3.13
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.3.13
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.4.0

Event History

Dec 18, 2019
CVE Published
via PHP·12:00 AM
Dec 23, 2019
CVE Published
via MITRE·02:40 AM
Data Sourced
via MITRE·02:40 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for Fixed bug (mail() may release string with refcount==1 twice)?

The vulnerability ID for Fixed bug (mail() may release string with refcount==1 twice) is CVE-2019-11049.

2

What is the severity of CVE-2019-11049?

The severity of CVE-2019-11049 is critical with a severity value of 9.8.

3

What is the affected software for CVE-2019-11049?

The affected software for CVE-2019-11049 is PHP versions 7.3.x below 7.3.13 and 7.4.0 on Windows.

4

How can I fix CVE-2019-11049?

To fix CVE-2019-11049, you need to upgrade PHP to version 7.3.13 or higher.

5

Where can I find more information about CVE-2019-11049?

More information about CVE-2019-11049 can be found at the following references: [Link 1](https://www.php.net/ChangeLog-7.php#7.3.13), [Link 2](https://bugs.php.net/bug.php?id=78943), [Link 3](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203