Out-of-bounds readin PHP.
No public exploit found; not on exploited lists.
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.
- Upgrade PHP to 7.2.27, 7.3.14, 7.4.2 or later, whichever matches your release line.
- Can't upgrade today? Usage of fgetss() has been DEPRECATED as of PHP 7.3.0. Please use strip_tags() or other means sanitizing HTML code.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 15 Jan 2020CVE ID reserved by php.
- 10 Feb 2020Published in the CVE List.
- 17 Sep 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other PHP vulnerabilities
Same weakness: Out-of-bounds read
- seclists.org mailing-list, x_refsource_BUGTRAQ
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- usn.ubuntu.com vendor-advisory, x_refsource_UBUNTU
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- seclists.org mailing-list, x_refsource_BUGTRAQ
- lists.debian.org mailing-list, x_refsource_MLIST
- lists.opensuse.org vendor-advisory, x_refsource_SUSE
- security.gentoo.org vendor-advisory, x_refsource_GENTOO
- www.oracle.com x_refsource_MISC
- bugs.php.net x_refsource_MISC
- security.netapp.com x_refsource_CONFIRM
- seclists.org mailing-list, x_refsource_BUGTRAQ
- www.oracle.com x_refsource_MISC
- www.tenable.com x_refsource_CONFIRM
Patchminder. CVE-2020-7059: Out-of-bounds read in PHP. https://patchminder.com/cve/cve-2020-7059/ (accessed 5 December 2026).