CVE-2020-7059

OOB read in php_strip_tags_ex

Published Feb 10, 2020 CVSS 3.1 · 6.5 Medium EPSS 7.1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

Vendor Workaround

Usage of fgetss() has been DEPRECATED as of PHP 7.3.0. Please use strip_tags() or other means sanitizing HTML code.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2124-1 php5 security update
Debian DSA Debian DSA DSA-4626-1 php7.3 security update
Debian DSA Debian DSA DSA-4628-1 php7.0 security update
EUVD EUVD EUVD-2020-28193 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.
Ubuntu USN Ubuntu USN USN-4279-1 PHP vulnerabilities
History

No history.

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-125

    Out-of-bounds Read

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 17, 2024, 2:37 AM
Reserved
Jan 15, 2020, 12:00 AM
Status
Modified
Published
Feb 10, 2020, 8:15 AM
Modified
Jun 17, 2026, 3:24 AM
Severity
Moderate
Public date
Jan 23, 2020, 12:00 AM