CVE-2020-7066
PHP vulnerability analysis and mitigation

Overview

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, a vulnerability was discovered in the get_headers() function when handling user-supplied URLs. If the URL contains a null byte character (\0), the URL will be silently truncated at that point (PHP Bug, NVD).

Technical details

The vulnerability affects the get_headers() PHP function when processing URLs containing null bytes. When such a URL is provided, the function silently truncates the URL at the null byte position without providing any warning or error message. This behavior could lead to incorrect URL processing and potentially cause security issues. The vulnerability has been assigned a CVSS v3.1 base score of 4.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N (Ubuntu Security).

Impact

The vulnerability could cause software to make incorrect assumptions about the target of the get_headers() function, potentially leading to information being sent to an unintended server. This may result in sensitive information disclosure to wrong destinations (Debian Security).

Mitigation and workarounds

The vulnerability has been fixed in PHP versions 7.2.29, 7.3.16, and 7.4.4. Users are advised to upgrade their PHP installations to these versions or later. Multiple Linux distributions have released security updates to address this vulnerability, including Ubuntu, Debian, and OpenSUSE (Debian Security, Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23492HIGH8.8
  • PHPPHP
  • pimcore/pimcore
NoYesJan 14, 2026
CVE-2026-23498HIGH7.2
  • PHPPHP
  • shopware/core
NoYesJan 14, 2026
GHSA-595p-g7xc-c333MEDIUM6.9
  • PHPPHP
  • algolia/algoliasearch-magento-2
NoYesJan 14, 2026
CVE-2022-50807MEDIUM6.9
  • PHPPHP
  • concrete5/concrete5
NoNoJan 13, 2026
CVE-2026-0859MEDIUM5.2
  • PHPPHP
  • typo3/cms-core
NoYesJan 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management