CVE-2020-7059: OOB read in php_strip_tags_ex

Published Jan 21, 2020
·
Updated

A flaw was found in php before 7.4.2. An out of bounds read in phpstriptagsex may lead to denial of service or potentially disclosure of sensitive data.

Upstream issue:

https://bugs.php.net/79099

Other sources

Fixed bug (OOB read in phpstriptagsex). (CVE-2020-7059)

PHP

When using fgetss() function to read data with stripping tags, in PHP versions 7.2.x below 7.2.27, 7.3.x below 7.3.14 and 7.4.x below 7.4.2 it is possible to supply data that will cause this function to read past the allocated buffer. This may lead to information disclosure or crash.

Affected Software

11 affected componentsFixes available
redhat/rh-php73-php<0:7.3.20-1.el7
0:7.3.20-1.el7
redhat/php<7.4.2
7.4.2
PHP PHP<7.2.27
7.2.27
PHP PHP>=7.2.0<7.2.27
PHP PHP>=7.3.0<7.3.14
PHP PHP>=7.4.0<7.4.2
Tenable Tenable.Sc<5.19.0
Oracle Communications Diameter Signaling Router>=8.0<=8.4
openSUSE Leap=15.1
Debian Debian Linux=8.0
debian/php7.4
7.4.33-1+deb11u57.4.33-1+deb11u11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/rh-php73-php to a version that resolves this vulnerability.

    Fixed in 0:7.3.20-1.el7
  2. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.4.2
  3. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.2.27
  4. Upgrade

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

    Fixed in 7.4.33-1+deb11u5Fixed in 7.4.33-1+deb11u11
  5. Upgrade

    Upgrade php to a version that resolves this vulnerability.

    Fixed in 7.4.2Patch CVE-2020-7059

Event History

Jan 23, 2020
CVE Published
12:00 AM
Feb 10, 2020
CVE Published
via MITRE·07:45 AM
Data Sourced
via MITRE·07:45 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:52 PM
Description
Feb 19, 2026
Data Sourced
via Ubuntu·12:22 AM
RemedyDescriptionSeverityAffected Software
Jun 29, 2026
Data Sourced
via Debian·03:45 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

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 CVE-2020-7059?

CVE-2020-7059 is a vulnerability in PHP versions 7.2.x below 7.2.27, 7.3.x below 7.3.14, and 7.4.x below 7.4.2 that allows an attacker to cause the fgetss() function to read past the allocated buffer, leading to information disclosure or crash.

2

What is the severity of CVE-2020-7059?

The severity of CVE-2020-7059 is critical with a CVSS score of 9.1.

3

How can I check if my PHP version is affected by CVE-2020-7059?

You can check if your PHP version is affected by CVE-2020-7059 by comparing it with the vulnerable versions: 7.2.x below 7.2.27, 7.3.x below 7.3.14, and 7.4.x below 7.4.2.

4

How do I fix CVE-2020-7059?

To fix CVE-2020-7059, you need to update your PHP version to at least 7.2.27, 7.3.14, or 7.4.2, depending on the branch you are using.

5

Where can I find more information about CVE-2020-7059?

You can find more information about CVE-2020-7059 in the references provided: [Reference 1](https://bugs.php.net/79099), [Reference 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1797777), [Reference 3](http://git.php.net/?p=php-src.git;a=commit;h=0f79b1bf301f455967676b5129240140c5c45b09).

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