information disclosure in function get_headers

Publication Date2020-04-01
TypeRemote File Inclusion
Affected PHP Versions
  • 7.2.0 - 7.2.8
  • 7.3.0 - 7.3.15
  • 7.4.0 - 7.4.3

CVE Details

In PHP versions 7.2.x below 7.2.9, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with a user-supplied URL, if the URL contains a zero (\u0000) character, the URL will be silently truncated at its first occurence. This may cause some software to make incorrect assumptions about the target of the get_headers(), which could lead to sending information to the wrong server or path on a server.


Upgrade to 7.2.9 or above, 7.3.16 or above, or 7.4.4 or above.