CVE-2021-21705Php
Medium 5.3 No auth needed
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Oct 4, 2021
- Updated
- Jun 17, 2026
- Category
- Web application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can be accepted as valid. This can lead to the code incorrectly parsing the URL and potentially leading to other security implications - like contacting a wrong server or making a wrong access decision.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≥ 7.3.0 < 7.3.29 |
| php | php | ≥ 7.4.0 < 7.4.21 |
| php | php | ≥ 8.0.0 < 8.0.8 |
| netapp | clustered_data_ontap | all |
| oracle | sd-wan_aware | 8.2 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.php.net Exploit Issue Tracking Patch
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory
- www.oracle.com Patch Vendor Advisory