Security mailing lists by PureSourceCode

CVE-2021-21705

MEDIUM 5.3CVSS 3.1

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.

Published
4 Oct 2021
Last modified
17 Jun 2026
Assigned by
security@php.net
NVD status
Modified
Weakness
CWE-20
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD security@php.net (Secondary) CVSS 3.1 MEDIUM 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.3.0, < 7.3.29 7.3.29
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.4.0, < 7.4.21 7.4.21
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 8.0.0, < 8.0.8 8.0.8
NVD netapp clustered_data_ontap
cpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:*
(no version)
NVD oracle sd-wan_aware
cpe:2.3:a:oracle:sd-wan_aware:8.2:*:*:*:*:*:*:*
= 8.2

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 4 Oct 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.