CVE-2020-7066 get_headers() silently truncates after a null byte
MediumCVSS 4.3
EPSS 2.7%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/php7.4(Debian:11) | < 7.4.5-1 | 7.4.5-1 |
| PHP | >= 7.2.0, < 7.2.29 | 7.2.29 |
| PHP | >= 7.3.0, < 7.3.16 | 7.3.16 |
| PHP | >= 7.4.0, < 7.4.4 | 7.4.4 |
| tenable.sc | < 5.19.0 | 5.19.0 |
| tenable.sc | = 5.19.0 | No fix listed |
| openSUSE leap | = 15.1 | No fix listed |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| alpine/php7(Alpine:v3.11) | < 7.3.16-r0 | 7.3.16-r0 |
| alpine/php7(Alpine:v3.12) | < 7.3.16-r0 | 7.3.16-r0 |
| alpine/php7(Alpine:v3.13) | < 7.3.16-r0 | 7.3.16-r0 |
| alpine/php7(Alpine:v3.14) | < 7.3.16-r0 | 7.3.16-r0 |
| alpine/php7(Alpine:v3.15) | < 7.3.16-r0 | 7.3.16-r0 |
| alpine/php7(Alpine:v3.9) | < 7.2.31-r0 | 7.2.31-r0 |
| PHP | = 7.2.x below 7.2.29 | No fix listed |
| PHP | = 7.3.x below 7.3.16 | No fix listed |
| PHP | = 7.4.x below 7.4.4 | No fix listed |
References
- security-tracker.debian.org vendor-advisory
- openSUSE-SU-2020:0642 third-party-advisory vendor-advisory
- bugs.php.net exploit issue-tracking patch vendor-advisory
- [debian-lts-announce] 20200426 [SECURITY] [DLA 2188-1] php5 security update mailing-list third-party-advisory
- security.netapp.com third-party-advisory
- USN-4330-2 third-party-advisory vendor-advisory
- DSA-4717 third-party-advisory vendor-advisory
- DSA-4719 third-party-advisory vendor-advisory
- www.tenable.com patch third-party-advisory
- security.alpinelinux.org vendor-advisory