Back

MEDIUM

DirectoryIterator class silently truncates after a null byte

Published Dec 23, 2019

Description

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.

Affected products

Remediation

No remediation recorded yet.

Metrics

Weaknesses (2)

References (17)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner php
Published Dec 23, 2019
Updated Sep 16, 2024
Reserved Apr 9, 2019
NVD
Status Modified
Modified Aug 17, 2026
Red Hat
Severity Moderate
Public date Dec 22, 2019