Bug 1226073 (CVE-2024-5458) - VUL-0: CVE-2024-5458: php5,php53,php7,php72,php74,php8: filter bypass in filter_var FILTER_VALIDATE_URL
Summary: VUL-0: CVE-2024-5458: php5,php53,php7,php72,php74,php8: filter bypass in filt...
Status: RESOLVED FIXED
Alias: CVE-2024-5458
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/409035/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-5458:5.3:(AV:N...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-07 07:46 UTC by SMASH SMASH
Modified: 2024-07-02 13:44 UTC (History)
5 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-06-07 07:46:42 UTC
From: Alan Coopersmith <alan.coopersmith () oracle com>
Date: Thu, 6 Jun 2024 17:04:53 -0700






In https://fosstodon.org/@php/112570710411472992 it is written:



The Changelog link includes further details:

 - Fixed bug GHSA-3qgc-jrrr-25jv (Bypass of CVE-2012-1823, Argument Injection
   in PHP-CGI). (CVE-2024-4577)

 - Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in filter_var
   FILTER_VALIDATE_URL). (CVE-2024-5458)

 - Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874). (CVE-2024-5585)

 - The openssl_private_decrypt function in PHP, when using PKCS1 padding
   (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the
   Marvin Attack unless it is used with an OpenSSL version that includes
   the changes from this pull request:
       https://github.com/openssl/openssl/pull/13817
   (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2
   and have also been backported to stable versions of various Linux
   distributions, as well as to the PHP builds provided for Windows since
   the previous release. All distributors and builders should ensure that
   this version is used to prevent PHP from being vulnerable.

Unfortunately the related advisories don't seem to be published yet under those
GHSA id's on https://github.com/php/php-src/security .

--
        -Alan Coopersmith-                 alan.coopersmith () oracle com
         Oracle Solaris Engineering - https://blogs.oracle.com/solaris

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-5458
https://seclists.org/oss-sec/2024/q2/273
Comment 2 OBSbugzilla Bot 2024-06-07 08:35:05 UTC
This is an autogenerated message for OBS integration:
This bug (1226073) was mentioned in
https://build.opensuse.org/request/show/1179149 Factory / php8
Comment 4 OBSbugzilla Bot 2024-06-07 09:15:04 UTC
This is an autogenerated message for OBS integration:
This bug (1226073) was mentioned in
https://build.opensuse.org/request/show/1179157 Factory / php8
Comment 5 Petr Gajdos 2024-06-11 11:28:50 UTC
SLFO submission:
https://build.suse.de/request/show/335054
Comment 6 Petr Gajdos 2024-06-11 11:32:59 UTC
ALP submission:
https://build.suse.de/request/show/335055
Comment 7 Petr Gajdos 2024-06-11 11:56:55 UTC
15sp6 submission:
https://build.suse.de/request/show/335074
Comment 8 Petr Gajdos 2024-06-11 13:01:42 UTC
See the testcase in the commit. My results are:

BEFORE

--- These ones should fail ---
bool(false)
string(18) "http://t[est@[::1]"
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
--- These ones should work ---
string(21) "http://test@127.0.0.1"
string(50) "http://test@[2001:db8:3333:4444:5555:6666:1.2.3.4]"
string(17) "http://test@[::1]"


AFTER

--- These ones should fail ---
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
--- These ones should work ---
string(21) "http://test@127.0.0.1"
string(50) "http://test@[2001:db8:3333:4444:5555:6666:1.2.3.4]"
string(17) "http://test@[::1]"
Comment 9 Petr Gajdos 2024-06-11 13:25:26 UTC
Submitted also for: 15sp4/php8, 15sp4/php7, 15sp2/php7, 12/php74.

I believe all fixed.
Comment 11 Maintenance Automation 2024-06-13 16:30:09 UTC
SUSE-SU-2024:2027-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1226073
CVE References: CVE-2024-5458
Maintenance Incident: [SUSE:Maintenance:34258](https://smelt.suse.de/incident/34258/)
Sources used:
Web and Scripting Module 12 (src):
 php74-7.4.33-1.68.2
SUSE Linux Enterprise Software Development Kit 12 SP5 (src):
 php74-7.4.33-1.68.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 12 Maintenance Automation 2024-06-17 08:30:15 UTC
SUSE-SU-2024:2039-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1226073
CVE References: CVE-2024-5458
Maintenance Incident: [SUSE:Maintenance:34256](https://smelt.suse.de/incident/34256/)
Sources used:
openSUSE Leap 15.4 (src):
 apache2-mod_php8-8.0.30-150400.4.43.1, php8-8.0.30-150400.4.43.1, php8-fpm-8.0.30-150400.4.43.1, php8-fastcgi-8.0.30-150400.4.43.1, php8-embed-8.0.30-150400.4.43.1, php8-test-8.0.30-150400.4.43.1
openSUSE Leap 15.5 (src):
 apache2-mod_php8-8.0.30-150400.4.43.1, php8-8.0.30-150400.4.43.1, php8-fpm-8.0.30-150400.4.43.1, php8-fastcgi-8.0.30-150400.4.43.1, php8-embed-8.0.30-150400.4.43.1, php8-test-8.0.30-150400.4.43.1
Web and Scripting Module 15-SP5 (src):
 apache2-mod_php8-8.0.30-150400.4.43.1, php8-8.0.30-150400.4.43.1, php8-fpm-8.0.30-150400.4.43.1, php8-fastcgi-8.0.30-150400.4.43.1, php8-embed-8.0.30-150400.4.43.1, php8-test-8.0.30-150400.4.43.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src):
 apache2-mod_php8-8.0.30-150400.4.43.1, php8-8.0.30-150400.4.43.1, php8-fpm-8.0.30-150400.4.43.1, php8-fastcgi-8.0.30-150400.4.43.1, php8-embed-8.0.30-150400.4.43.1, php8-test-8.0.30-150400.4.43.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src):
 apache2-mod_php8-8.0.30-150400.4.43.1, php8-8.0.30-150400.4.43.1, php8-fpm-8.0.30-150400.4.43.1, php8-fastcgi-8.0.30-150400.4.43.1, php8-embed-8.0.30-150400.4.43.1, php8-test-8.0.30-150400.4.43.1
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src):
 apache2-mod_php8-8.0.30-150400.4.43.1, php8-8.0.30-150400.4.43.1, php8-fpm-8.0.30-150400.4.43.1, php8-fastcgi-8.0.30-150400.4.43.1, php8-embed-8.0.30-150400.4.43.1, php8-test-8.0.30-150400.4.43.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src):
 apache2-mod_php8-8.0.30-150400.4.43.1, php8-8.0.30-150400.4.43.1, php8-fpm-8.0.30-150400.4.43.1, php8-fastcgi-8.0.30-150400.4.43.1, php8-embed-8.0.30-150400.4.43.1, php8-test-8.0.30-150400.4.43.1
SUSE Manager Server 4.3 (src):
 apache2-mod_php8-8.0.30-150400.4.43.1, php8-8.0.30-150400.4.43.1, php8-fpm-8.0.30-150400.4.43.1, php8-fastcgi-8.0.30-150400.4.43.1, php8-embed-8.0.30-150400.4.43.1, php8-test-8.0.30-150400.4.43.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 13 Maintenance Automation 2024-06-17 08:30:20 UTC
SUSE-SU-2024:2038-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1226073
CVE References: CVE-2024-5458
Maintenance Incident: [SUSE:Maintenance:34257](https://smelt.suse.de/incident/34257/)
Sources used:
Legacy Module 15-SP5 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1
Legacy Module 15-SP6 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1
SUSE Package Hub 15 15-SP5 (src):
 php7-embed-7.4.33-150400.4.37.1
SUSE Package Hub 15 15-SP6 (src):
 php7-embed-7.4.33-150400.4.37.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1
openSUSE Leap 15.4 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-test-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1, php7-embed-7.4.33-150400.4.37.1
openSUSE Leap 15.5 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-test-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1, php7-embed-7.4.33-150400.4.37.1
openSUSE Leap 15.6 (src):
 php7-fpm-7.4.33-150400.4.37.1, php7-test-7.4.33-150400.4.37.1, php7-7.4.33-150400.4.37.1, php7-fastcgi-7.4.33-150400.4.37.1, apache2-mod_php7-7.4.33-150400.4.37.1, php7-embed-7.4.33-150400.4.37.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 14 Maintenance Automation 2024-06-17 08:30:23 UTC
SUSE-SU-2024:2037-1: An update that solves three vulnerabilities can now be installed.

Category: security (important)
Bug References: 1222857, 1222858, 1226073
CVE References: CVE-2024-2756, CVE-2024-3096, CVE-2024-5458
Maintenance Incident: [SUSE:Maintenance:33467](https://smelt.suse.de/incident/33467/)
Sources used:
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src):
 php7-7.4.33-150200.3.65.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src):
 php7-7.4.33-150200.3.65.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src):
 php7-7.4.33-150200.3.65.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src):
 php7-7.4.33-150200.3.65.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src):
 php7-7.4.33-150200.3.65.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src):
 php7-7.4.33-150200.3.65.1
SUSE Enterprise Storage 7.1 (src):
 php7-7.4.33-150200.3.65.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 15 Marcus Meissner 2024-06-20 07:40:27 UTC
we also need it for our php 8.1:

openSUSE:Backports:SLE-15-SP5:Update/php81
Comment 16 Petr Gajdos 2024-06-20 07:45:17 UTC
(In reply to Marcus Meissner from comment #15)
> we also need it for our php 8.1:
> 
> openSUSE:Backports:SLE-15-SP5:Update/php81

Yep, working on it already.
Comment 17 Petr Gajdos 2024-06-20 08:03:53 UTC
b15sp5 submission
https://build.opensuse.org/request/show/1181879
Comment 18 Petr Gajdos 2024-06-20 08:19:05 UTC
Reassigning back to security team.
Comment 19 Alexander Bergmann 2024-06-20 08:46:00 UTC
The following code streams are also still unfixed:

SUSE:ALP:Source:Standard:1.0/php8   v8.2.16
SUSE:SLFO:Main/php8                 v8.2.19
Comment 20 Petr Gajdos 2024-06-20 08:53:52 UTC
Hi Alex,

(In reply to Alexander Bergmann from comment #19)
> The following code streams are also still unfixed:
> 
> SUSE:ALP:Source:Standard:1.0/php8   v8.2.16
> SUSE:SLFO:Main/php8                 v8.2.19


they have corresponding requests already, see comment 6 and comment 5. Something else is missing?
Comment 21 Alexander Bergmann 2024-06-20 09:38:10 UTC
> > SUSE:ALP:Source:Standard:1.0/php8   v8.2.16
> > SUSE:SLFO:Main/php8                 v8.2.19
> 
> they have corresponding requests already, see comment 6 and comment 5.
> Something else is missing?

Missed that, looks all good. (In reply to Petr Gajdos from comment #20)
Comment 22 Petr Gajdos 2024-06-20 09:43:58 UTC
Okay, reassigning that back again, if something odd or missing, let me know. Thanks