Bug 2170770 (CVE-2023-0568) - CVE-2023-0568 php: 1-byte array overrun in common path resolve code
Summary: CVE-2023-0568 php: 1-byte array overrun in common path resolve code
Keywords:
Status: NEW
Alias: CVE-2023-0568
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2170779 2170780 2174679 2174680 2174681 2174682 2174683 2174684
Blocks: 2170009
TreeView+ depends on / blocked
 
Reported: 2023-02-17 08:31 UTC by Sandipan Roy
Modified: 2024-01-24 10:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in PHP. This security issue occurs because the core path resolution function allocates a buffer one byte small. Resolving paths with lengths close to the system MAXPATHLEN setting may lead to the byte after the allocated buffer being overwritten with a NULL value, which might lead to unauthorized data access or modification.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2023:6073 0 None None None 2023-10-24 10:36:06 UTC
Red Hat Product Errata RHSA-2023:5926 0 None None None 2023-10-19 13:14:58 UTC
Red Hat Product Errata RHSA-2023:5927 0 None None None 2023-10-19 13:24:32 UTC
Red Hat Product Errata RHSA-2024:0387 0 None None None 2024-01-24 10:53:35 UTC

Description Sandipan Roy 2023-02-17 08:31:45 UTC
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.

https://bugs.php.net/bug.php?id=81746

Comment 1 Sandipan Roy 2023-02-17 08:42:41 UTC
Created php tracking bugs for this issue:

Affects: fedora-36 [bug 2170779]
Affects: fedora-37 [bug 2170780]

Comment 6 errata-xmlrpc 2023-10-19 13:14:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:5926 https://access.redhat.com/errata/RHSA-2023:5926

Comment 7 errata-xmlrpc 2023-10-19 13:24:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:5927 https://access.redhat.com/errata/RHSA-2023:5927

Comment 8 errata-xmlrpc 2024-01-24 10:53:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:0387 https://access.redhat.com/errata/RHSA-2024:0387


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