# CVE-2023-0568: Array overrun in common path resolve code

- Severity: High 7.5 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-02-16T06:34:04.101Z
- Modified: 2026-09-08T08:48:18.376Z
- Also known as: BIT-LIBPHP-2023-0568, BIT-PHP-2023-0568, BIT-PHP-MIN-2023-0568
- Weaknesses: CWE-131, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: php

## Description

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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.0.x before 8.0.28; from 8.1.x before 8.1.16; from 8.2.x before 8.2.3
- php php: from 8.0.0 before 8.0.28; from 8.1.0 before 8.1.16; from 8.2.0 before 8.2.3
- libphp (Bitnami): from 8.0.0 before 8.0.28; from 8.1.0 before 8.1.16; from 8.2.0 before 8.2.3
- php (Bitnami): from 8.0.0 before 8.0.28; from 8.1.0 before 8.1.16; from 8.2.0 before 8.2.3
- php-min (Bitnami): from 8.0.0 before 8.0.28; from 8.1.0 before 8.1.16; from 8.2.0 before 8.2.3

## Every score

- php: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugs.php.net/bug.php?id=81746> (exploit, advisory, issue-tracking, patch, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20230517-0001/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-0568> (web)

## Sources

- CVE List: [CVE-2023-0568](https://www.cve.org/CVERecord?id=CVE-2023-0568), CVE Terms of Use, modified 2025-03-18
- NVD: [CVE-2023-0568](https://nvd.nist.gov/vuln/detail/CVE-2023-0568), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2023-0568](https://osv.dev/vulnerability/BIT-LIBPHP-2023-0568), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2023-0568](https://osv.dev/vulnerability/BIT-PHP-2023-0568), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2023-0568](https://osv.dev/vulnerability/BIT-PHP-MIN-2023-0568), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-0568 · Whole record: https://cve.day/CVE-2023-0568.json · Rebuilt by cve.day 2026-11-25T22:58:22.040Z
