Bug 1208366 (CVE-2023-0568) - VUL-0: CVE-2023-0568: php5,php74,php8,php7,php72,php53: NULL byte off-by-one in php_check_specific_open_basedir
Summary: VUL-0: CVE-2023-0568: php5,php74,php8,php7,php72,php53: NULL byte off-by-one ...
Status: RESOLVED FIXED
Alias: CVE-2023-0568
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/357383/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-0568:7.5:(AV:N...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-16 08:23 UTC by Thomas Leroy
Modified: 2024-05-06 08:11 UTC (History)
2 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 Thomas Leroy 2023-02-16 08:23:15 UTC
CVE-2023-0568

In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, core
path resolution function allocate buffer one byte too small. When resolving
paths with lengths close to system MAXPATHLEN setting, this may lead to the byte
after the allocated buffer being overwritten with NUL value, which might lead to
unauthorized data access or modification.

Upstream fix:
https://github.com/php/php-src/commit/ec10b28d64decbc54aa1e585dce580f0bd7a5953

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-0568
https://www.cve.org/CVERecord?id=CVE-2023-0568
https://bugs.php.net/bug.php?id=81746
Comment 1 Thomas Leroy 2023-02-16 08:25:03 UTC
The bug is quite old, so all the maintained codestreams are affected:

SUSE:SLE-11-SP3:Update/php53
SUSE:SLE-15-SP2:Update/php7
SUSE:SLE-15-SP4:Update/php7
SUSE:SLE-15:Update/php7
SUSE:SLE-12:Update/php74
SUSE:SLE-15-SP4:Update/php8
Comment 2 Petr Gajdos 2023-02-17 12:06:23 UTC
Submitted for php8/15sp4, php7/15sp4, php7/15sp2, php7/15, 12/php74, 11sp3/php53.

I believe all fixed.
Comment 4 Maintenance Automation 2023-02-22 12:30:02 UTC
SUSE-SU-2023:0476-1: An update that solves four vulnerabilities can now be installed.

Category: security (important)
Bug References: 1206958, 1208366, 1208367, 1208388
CVE References: CVE-2022-31631, CVE-2023-0567, CVE-2023-0568, CVE-2023-0662
Sources used:
openSUSE Leap 15.4 (src): php7-7.4.33-150200.3.51.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): php7-7.4.33-150200.3.51.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): php7-7.4.33-150200.3.51.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): php7-7.4.33-150200.3.51.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): php7-7.4.33-150200.3.51.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): php7-7.4.33-150200.3.51.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): php7-7.4.33-150200.3.51.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): php7-7.4.33-150200.3.51.1
SUSE Manager Server 4.2 (src): php7-7.4.33-150200.3.51.1
SUSE Enterprise Storage 7.1 (src): php7-7.4.33-150200.3.51.1
SUSE Enterprise Storage 7 (src): php7-7.4.33-150200.3.51.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 5 Maintenance Automation 2023-02-24 16:30:09 UTC
SUSE-SU-2023:0515-1: An update that solves three vulnerabilities can now be installed.

Category: security (important)
Bug References: 1208366, 1208367, 1208388
CVE References: CVE-2023-0567, CVE-2023-0568, CVE-2023-0662
Sources used:
Web and Scripting Module 12 (src): php74-7.4.33-1.53.1
SUSE Linux Enterprise Software Development Kit 12 SP5 (src): php74-7.4.33-1.53.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 6 Maintenance Automation 2023-02-24 16:30:13 UTC
SUSE-SU-2023:0514-1: An update that solves three vulnerabilities can now be installed.

Category: security (important)
Bug References: 1208366, 1208367, 1208388
CVE References: CVE-2023-0567, CVE-2023-0568, CVE-2023-0662
Sources used:
openSUSE Leap 15.4 (src): php7-7.2.34-150000.4.109.1
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): php7-7.2.34-150000.4.109.1
SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): php7-7.2.34-150000.4.109.1
SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): php7-7.2.34-150000.4.109.1
SUSE CaaS Platform 4.0 (src): php7-7.2.34-150000.4.109.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 7 Maintenance Automation 2023-02-24 16:30:17 UTC
SUSE-SU-2023:0513-1: An update that solves three vulnerabilities can now be installed.

Category: security (important)
Bug References: 1208366, 1208367, 1208388
CVE References: CVE-2023-0567, CVE-2023-0568, CVE-2023-0662
Sources used:
openSUSE Leap 15.4 (src): php7-test-7.4.33-150400.4.19.1, php7-embed-7.4.33-150400.4.19.1, php7-fpm-7.4.33-150400.4.19.1, php7-7.4.33-150400.4.19.1, apache2-mod_php7-7.4.33-150400.4.19.1, php7-fastcgi-7.4.33-150400.4.19.1
Legacy Module 15-SP4 (src): php7-fpm-7.4.33-150400.4.19.1, apache2-mod_php7-7.4.33-150400.4.19.1, php7-7.4.33-150400.4.19.1, php7-fastcgi-7.4.33-150400.4.19.1
SUSE Package Hub 15 15-SP4 (src): php7-embed-7.4.33-150400.4.19.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 8 Maintenance Automation 2023-02-27 16:30:03 UTC
SUSE-SU-2023:0527-1: An update that solves two vulnerabilities can now be installed.

Category: security (important)
Bug References: 1208366, 1208367
CVE References: CVE-2023-0568, CVE-2023-0662
Sources used:
openSUSE Leap 15.4 (src): apache2-mod_php8-8.0.28-150400.4.26.1, php8-8.0.28-150400.4.26.1, php8-test-8.0.28-150400.4.26.1, php8-embed-8.0.28-150400.4.26.1, php8-fastcgi-8.0.28-150400.4.26.1, php8-fpm-8.0.28-150400.4.26.1
Web and Scripting Module 15-SP4 (src): apache2-mod_php8-8.0.28-150400.4.26.1, php8-8.0.28-150400.4.26.1, php8-test-8.0.28-150400.4.26.1, php8-embed-8.0.28-150400.4.26.1, php8-fastcgi-8.0.28-150400.4.26.1, php8-fpm-8.0.28-150400.4.26.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 9 OBSbugzilla Bot 2023-10-26 10:36:02 UTC
This is an autogenerated message for OBS integration:
This bug (1208366) was mentioned in
https://build.opensuse.org/request/show/1120490 Backports:SLE-15-SP5 / php81
Comment 10 Robert Frohl 2024-05-06 08:11:09 UTC
done, closing