CVE Vulnerabilities

CVE-2019-11045

Improper Null Termination

Published: Dec 23, 2019 | Modified: Nov 21, 2024
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

In PHP versions 7.2.x below 7.2.26, 7.3.x below 7.3.13 and 7.4.0, PHP DirectoryIterator class accepts filenames with embedded 0 byte and treats them as terminating at that byte. This could lead to security vulnerabilities, e.g. in applications checking paths that the code is allowed to access.

Weakness

The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.

Affected Software

NameVendorStart VersionEnd Version
PhpPhp7.2.0 (including)7.2.26 (including)
PhpPhp7.3.0 (including)7.3.13 (including)
PhpPhp7.4.0 (including)7.4.0 (including)
Red Hat Enterprise Linux 8RedHatphp:7.3-8020020200715124551.ceb1cf90*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-php73-php-0:7.3.20-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSRedHatrh-php73-php-0:7.3.20-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-php73-php-0:7.3.20-1.el7*
Php5Ubuntuesm-infra-legacy/trusty*
Php5Ubuntutrusty*
Php5Ubuntutrusty/esm*
Php7.0Ubuntuesm-infra/xenial*
Php7.0Ubuntuxenial*
Php7.2Ubuntubionic*
Php7.2Ubuntudisco*
Php7.2Ubuntuesm-infra/bionic*
Php7.2Ubuntuupstream*
Php7.3Ubuntudevel*
Php7.3Ubuntueoan*
Php7.3Ubuntuupstream*

Potential Mitigations

References