CVE-2020-7066

Public Exploit
get_headers() silently truncates after a null byte

Description

In PHP versions 7.2.x below 7.2.29, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with user-supplied URL, if the URL contains zero (\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server.

Category

5.3
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 2.0 •
EPSS 1.87% Top 20%
Vendor Advisory ubuntu.com Vendor Advisory opensuse.org Vendor Advisory debian.org Vendor Advisory debian.org Vendor Advisory php.net
Affected: PHP Group PHP
Published at:
Updated at:

References

Link Tags
https://bugs.php.net/bug.php?id=79329 patch exploit vendor advisory issue tracking
https://security.netapp.com/advisory/ntap-20200403-0001/ third party advisory
https://lists.debian.org/debian-lts-announce/2020/04/msg00021.html third party advisory mailing list
https://usn.ubuntu.com/4330-2/ third party advisory vendor advisory
http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00025.html third party advisory vendor advisory
https://www.debian.org/security/2020/dsa-4717 third party advisory vendor advisory
https://www.debian.org/security/2020/dsa-4719 third party advisory vendor advisory
https://www.tenable.com/security/tns-2021-14 third party advisory patch

Frequently Asked Questions

What is the severity of CVE-2020-7066?
CVE-2020-7066 has been scored as a medium severity vulnerability.
How to fix CVE-2020-7066?
To fix CVE-2020-7066, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2020-7066 being actively exploited in the wild?
It is possible that CVE-2020-7066 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~2% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2020-7066?
CVE-2020-7066 affects PHP Group PHP.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.