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.
Remediation
References
Related Vulnerabilities
PHP Improper Input Validation Vulnerability (CVE-2016-4538)
WordPress Plugin Facebook for WordPress PHP Object Injection (2.2.2)
Moodle Exposure of Resource to Wrong Sphere Vulnerability (CVE-2021-43560)
WordPress Plugin Tweet Wheel Spam (0.3)
WordPress Plugin YaMaps for WordPress Cross-Site Scripting (0.6.25)