PT-2021-3598 · Php+10 · Php+10

Published

2021-07-02

·

Updated

2025-08-11

·

CVE-2021-21705

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Name of the Vulnerable Software and Affected Versions PHP versions 7.3.x through 7.3.28 PHP versions 7.4.x through 7.4.20 PHP versions 8.0.x through 8.0.7
Description The issue is related to the URL validation functionality via the filter var() function with the FILTER VALIDATE URL parameter. It can lead to incorrect parsing of URLs with invalid password fields, potentially resulting in security implications such as contacting a wrong server or making a wrong access decision. The vulnerability is also associated with insufficient request checking, which can allow a remote attacker to perform a Server-Side Request Forgery (SSRF) attack.
Recommendations For PHP versions 7.3.x through 7.3.28, update to version 7.3.29 or later. For PHP versions 7.4.x through 7.4.20, update to version 7.4.21 or later. For PHP versions 8.0.x through 8.0.7, update to version 8.0.8 or later.

Exploit

Fix

RCE

SSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2022:1935
ALT-PU-2021-2180
ALT-PU-2021-2192
ALT-PU-2021-2809
ALT-PU-2021-3079
BDU:2021-03703
BIT-LIBPHP-2021-21705
BIT-PHP-2021-21705
BIT-PHP-MIN-2021-21705
CESA-2022_1935
CVE-2021-21705
DLA-2708-1
DSA-4935-1
MGASA-2021-0312
MGASA-2021-0330
OESA-2021-1389
OPENSUSE-SU-2021:1130-1
OPENSUSE-SU-2021:2575-1
OPENSUSE-SU-2021:2637-1
OPENSUSE-SU-2021_1130-1
OPENSUSE-SU-2021_2575-1
OPENSUSE-SU-2021_2637-1
OPENSUSE-SU-2022_4067-1
OPENSUSE-SU-2022_4069-1
RHSA-2021:2992
RHSA-2022:1935
RHSA-2022_1935
RLSA-2022:1935
SUSE-SU-2021:2564-1
SUSE-SU-2021:2636-1
SUSE-SU-2021:2637-1
SUSE-SU-2021_2564-1
SUSE-SU-2022:4067-1
SUSE-SU-2022:4068-1
SUSE-SU-2022:4069-1
USN-5006-1
USN-5006-2

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Php
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu