PT-2020-2412 · Php+8 · Php+8
64796C6E69
·
Published
2020-03-17
·
Updated
2025-08-11
·
CVE-2020-7066
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
PHP versions 7.2.x through 7.2.28
PHP versions 7.3.x through 7.3.15
PHP versions 7.4.x through 7.4.3
Description
The issue is related to the implementation of the
get headers() function in PHP, which does not properly check user-supplied URLs containing the zero (0) character. This may cause software to make incorrect assumptions about the target of the get headers() function and possibly send information to the wrong server. The vulnerability can be exploited by a remote attacker to gain unauthorized access to protected information.Recommendations
For PHP versions 7.2.x through 7.2.28, update to version 7.2.29 or later.
For PHP versions 7.3.x through 7.3.15, update to version 7.3.16 or later.
For PHP versions 7.4.x through 7.4.3, update to version 7.4.4 or later.
As a temporary workaround, consider validating user-supplied URLs to prevent the inclusion of the zero (
0) character before using the get headers() function.Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Linuxmint
Php
Red Hat
Rocky Linux
Suse
Ubuntu