Vulnerabilityin PHP.
No public exploit found; not on exploited lists.
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.
- No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.
Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 15 Jan 2020CVE ID reserved by php.
- 1 Apr 2020Published in the CVE List.
- 17 Sep 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other PHP vulnerabilities
Same weakness: Improper null termination
- bugs.php.net x_refsource_MISC
- security.netapp.com x_refsource_CONFIRM
- lists.debian.org mailing-list, x_refsource_MLIST
- usn.ubuntu.com vendor-advisory, x_refsource_UBUNTU
- lists.opensuse.org vendor-advisory, x_refsource_SUSE
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- www.tenable.com x_refsource_CONFIRM
Patchminder. CVE-2020-7066: Vulnerability in PHP. https://patchminder.com/cve/cve-2020-7066/ (accessed 5 December 2026).