Back

HIGH

link() silently truncates after a null byte on Windows

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 on Windows, PHP link() function 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

Red Hat statement

This issue did not affect the versions of php as shipped with Red Hat Enterprise Linux 5, 6, 7, and 8 as the flaw only affects Windows builds. See CVE-2006-7243 for the Linux version of this flaw.

Metrics

Weaknesses (1)

References (9)

Change history (0)

No recorded changes yet.

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