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

VectorAV: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

ALSA-2020:3662
ALT-PU-2020-1562
ALT-PU-2020-1603
BDU:2020-02387
BIT-LIBPHP-2020-7066
BIT-PHP-2020-7066
BIT-PHP-MIN-2020-7066
CESA-2020_3662
CVE-2020-7066
DLA-2188-1
DSA-4717-1
DSA-4719-1
MGASA-2020-0148
OPENSUSE-SU-2020:0642-1
OPENSUSE-SU-2020_0642-1
OPENSUSE-SU-2022_4067-1
RHSA-2020:3662
RHSA-2020:5275
RHSA-2020_3662
RLSA-2020:3662
SUSE-SU-2020:1199-1
SUSE-SU-2020:1546-1
SUSE-SU-2020:1714-1
SUSE-SU-2020_1546-1
SUSE-SU-2022:4067-1
USN-4330-1
USN-4330-2

Affected Products

Alt Linux
Almalinux
Centos
Linuxmint
Php
Red Hat
Rocky Linux
Suse
Ubuntu