CVE-2020-7059
OOB read in php_strip_tags_ex
Reported by php · Published February 10, 2020
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| communications_diameter_signaling_router | oracle | 8.4 |
| php7.2 | Ubuntu:18.04:LTS | 7.2.24-0ubuntu0.18.04.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 7.2.x, 7.3.x, 7.4.x |
| alpine | php7 | 0, 0 |
| PHP Group | PHP | 7.2.x, 7.3.x, 7.4.x |
Timeline
- Feb 10, 2020 CVE Published
- Nov 9, 2020 PoC Published (6 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 7, 2026 Security Advisory (7 in total, the first dated here)
- Aug 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-7059
vulnetix vdb fixes CVE-2020-7059
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-7059/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 20200218 [SECURITY] [DSA 4626-1] php7.3 security update mailing-listx_refsource_BUGTRAQ
- DSA-4626 vendor-advisoryx_refsource_DEBIAN
- USN-4279-1 vendor-advisoryx_refsource_UBUNTU
- DSA-4628 vendor-advisoryx_refsource_DEBIAN
- 20200219 [SECURITY] [DSA 4628-1] php7.0 security update mailing-listx_refsource_BUGTRAQ
- [debian-lts-announce] 20200228 [SECURITY] [DLA 2124-1] php5 security update mailing-listx_refsource_MLIST
- openSUSE-SU-2020:0341 vendor-advisoryx_refsource_SUSE
- GLSA-202003-57 vendor-advisoryx_refsource_GENTOO
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- 20210116 Re: [SECURITY] [DSA 4628-1] php7.0 security update mailing-listx_refsource_BUGTRAQ
- x_refsource_MISC
- x_refsource_CONFIRM