# CVE-2020-7059: OOB read in php_strip_tags_ex

- Severity: Medium 6.5 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.12%, higher than 94% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-10T07:45:13.921Z
- Modified: 2026-09-08T08:48:24.704Z
- Also known as: BIT-LIBPHP-2020-7059, BIT-PHP-2020-7059, BIT-PHP-MIN-2020-7059
- Weaknesses: CWE-125
- Assigned by: php

## Description

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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 7.2.x before 7.2.27; from 7.3.x before 7.3.14; from 7.4.x before 7.4.2
- php php: from 7.2.0 before 7.2.27; from 7.3.0 before 7.3.14; from 7.4.0 before 7.4.2
- tenable tenable.sc: before 5.19.0
- oracle communications_diameter_signaling_router: from 8.0 up to 8.4
- opensuse leap: 15.1
- debian debian_linux: 8.0
- libphp (Bitnami): from 7.2.0 before 7.2.27; from 7.3.0 before 7.3.14; from 7.4.0 before 7.4.2
- php (Bitnami): from 7.2.0 before 7.2.27; from 7.3.0 before 7.3.14; from 7.4.0 before 7.4.2
- php-min (Bitnami): from 7.2.0 before 7.2.27; from 7.3.0 before 7.3.14; from 7.4.0 before 7.4.2

## Every score

- php: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://bugs.php.net/bug.php?id=79099> (exploit, advisory, vendor-advisory)
- <https://seclists.org/bugtraq/2020/Feb/27> (advisory, mailing-list, third-party-advisory)
- <https://www.debian.org/security/2020/dsa-4626> (advisory, third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4279-1/> (advisory, patch, third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2020/dsa-4628> (advisory, third-party-advisory, vendor-advisory)
- <https://seclists.org/bugtraq/2020/Feb/31> (advisory, mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2020/02/msg00030.html> (advisory, mailing-list, third-party-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00023.html> (advisory, third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202003-57> (advisory, third-party-advisory, vendor-advisory)
- <https://www.oracle.com/security-alerts/cpujul2020.html> (advisory, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20200221-0002/> (advisory, third-party-advisory)
- <https://seclists.org/bugtraq/2021/Jan/3> (advisory, mailing-list, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpuApr2021.html> (advisory, third-party-advisory)
- <https://www.tenable.com/security/tns-2021-14> (advisory, patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7059> (web)

## Sources

- CVE List: [CVE-2020-7059](https://www.cve.org/CVERecord?id=CVE-2020-7059), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2020-7059](https://nvd.nist.gov/vuln/detail/CVE-2020-7059), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2020-7059](https://osv.dev/vulnerability/BIT-LIBPHP-2020-7059), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2020-7059](https://osv.dev/vulnerability/BIT-PHP-2020-7059), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2020-7059](https://osv.dev/vulnerability/BIT-PHP-MIN-2020-7059), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-7059 · Whole record: https://cve.day/CVE-2020-7059.json · Rebuilt by cve.day 2026-11-25T22:57:50.778Z
