CVE-2020-7059
OOB read in php_strip_tags_ex
- Published
- Updated
- Reserved
- 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.
Timeline
ID reserved
By php
- 26 days later
· 26 days later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| phpCNA (assigner) | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| NVDNVD · Modified | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
- EPSS (exploitation in 30 days)
- 7.4% · top 5.5% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Weakness
Affected products
What to do
Workaround: Usage of fgetss() has been DEPRECATED as of PHP 7.3.0. Please use strip_tags() or other means sanitizing HTML code.
References (14)
- 20200218 [SECURITY] [DSA 4626-1] php7.3 security update (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- DSA-4626 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- USN-4279-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- DSA-4628 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 20200219 [SECURITY] [DSA 4628-1] php7.0 security update (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- [debian-lts-announce] 20200228 [SECURITY] [DLA 2124-1] php5 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- openSUSE-SU-2020:0341 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- GLSA-202003-57 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- https://www.oracle.com/security-alerts/cpujul2020.html (opens in a new tab)x_refsource_MISCx_transferred
- https://bugs.php.net/bug.php?id=79099 (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20200221-0002/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- 20210116 Re: [SECURITY] [DSA 4628-1] php7.0 security update (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- https://www.oracle.com/security-alerts/cpuApr2021.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.tenable.com/security/tns-2021-14 (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2020-7059)Record last updated .