Bug 1978755 (CVE-2021-21705) - CVE-2021-21705 php: SSRF bypass in FILTER_VALIDATE_URL
Summary: CVE-2021-21705 php: SSRF bypass in FILTER_VALIDATE_URL
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-21705
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1978756 1981421 1981422 1981423 1981424 1986282
Blocks: 1978792
TreeView+ depends on / blocked
 
Reported: 2021-07-02 16:18 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-05-17 09:55 UTC (History)
4 users (show)

Fixed In Version: php 7.3.29, php 7.4.21, php 8.0.8
Clone Of:
Environment:
Last Closed: 2021-08-03 13:07:13 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2992 0 None None None 2021-08-03 09:16:00 UTC
Red Hat Product Errata RHSA-2022:1935 0 None None None 2022-05-10 14:23:26 UTC

Description Guilherme de Almeida Suckevicz 2021-07-02 16:18:12 UTC
A security issue was found in PHP in the way it allows to bypass the FILTER_VALIDATE_URL check via a crafted URL which may lead to SSRF.

Reference:
https://bugs.php.net/bug.php?id=81122

Comment 1 Guilherme de Almeida Suckevicz 2021-07-02 16:18:30 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1978756]

Comment 5 Marco Benatto 2021-07-12 14:34:52 UTC
Currently php's FILTER_VALIDATE_URL check doesn't recognize some non-compliant RFC 3986 URLs and returns it as valid. This allows an attacker to craft URLs, which depending on how the URL filter checking is used in the application side, lead to Server Side Request Forgery.

Comment 6 errata-xmlrpc 2021-08-03 09:15:58 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2021:2992 https://access.redhat.com/errata/RHSA-2021:2992

Comment 7 Product Security DevOps Team 2021-08-03 13:07:13 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-21705

Comment 8 errata-xmlrpc 2022-05-10 14:23:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:1935 https://access.redhat.com/errata/RHSA-2022:1935


Note You need to log in before you can comment on or make changes to this bug.