CVE Program
CNA-CVE-2020-7071
FILTER_VALIDATE_URL accepts URLs with invalid userinfo
Details
In PHP versions 7.3.x below 7.3.26, 7.4.x below 7.4.14 and 8.0.0, when validating URL with functions like filter_var($url, FILTER_VALIDATE_URL), PHP will accept an URL with invalid password as valid URL. This may lead to functions that rely on URL being valid to mis-parse the URL and produce wrong data as components of the URL.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PHP | php | From 7.3 before 7.3.26 (fixed in 7.3.26) From 7.4 before 7.4.14 (fixed in 7.4.14) From 8.0.X before 8.0.1 (fixed in 8.0.1) |
References
- https://www.cve.org/CVERecord?id=CVE-2020-7071
- https://bugs.php.net/bug.php?id=77423
- https://www.debian.org/security/2021/dsa-4856
- https://security.gentoo.org/glsa/202105-23
- https://lists.debian.org/debian-lts-announce/2021/07/msg00008.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.tenable.com/security/tns-2021-14
- https://security.netapp.com/advisory/ntap-20210312-0005/