Php · Php · CVE-2020-7066
**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.