CVE-2023-3824
Buffer overflow and overread in phar_dir_read()
Reported by php · Published August 11, 2023
In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php8.1-bcmath | Amazon Linux | 8.1.22-1.amzn2023.0.1 |
| php8.2-devel | Amazon Linux | 8.2.9-1.amzn2023.0.2 |
| php8.1-ffi | Amazon Linux | 8.1.22-1.amzn2023.0.1 |
| php8.2-mysqlnd | Amazon Linux | 8.2.9-1.amzn2023.0.2 |
| php-mysqlnd | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-cli | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-ldap | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php8.2-xml | Amazon Linux | 8.2.9-1.amzn2023.0.2 |
| php-gd | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-embedded | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php8.2-gd | Amazon Linux | 8.2.9-1.amzn2023.0.2 |
| php-fpm | Amazon Linux | 5.4.16-46.amzn2.0.6 |
76 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.0.*, 8.1.*, 8.2.* |
| amazon:2023 | php8.1-bcmath | 0 |
| amazon:2023 | php8.2-devel | 0 |
| amazon:2023 | php8.1-ffi | 0 |
| amazon:2023 | php8.2-mysqlnd | 0 |
| amazon:2 | php-mysqlnd | 0 |
| amazon:2 | php-cli | 0 |
| amazon:2 | php-ldap | 0 |
| amazon:2023 | php8.2-xml | 0 |
| amazon:2 | php-gd | 0 |
| amazon:2 | php-embedded | 0 |
| amazon:2023 | php8.2-gd | 0 |
| amazon:2 | php-fpm | 0 |
| amazon:2 | php-process | 0 |
| amazon:2023 | php8.1-dba | 0 |
| amazon:2023 | php8.1-opcache | 0 |
| amazon:2 | php-bcmath | 0 |
| alpine | php8 | 0 |
| amazon:2023 | php8.2-ldap | 0 |
| amazon:2023 | php8.2-embedded | 0 |
…and 62 more
Timeline
- Aug 6, 2023 CVE Published
- Aug 11, 2023 EPSS Score (30 in total, the first dated here)
- May 6, 2024 VulnCheck KEV Exploitation (3 in total, the first dated here)
- Aug 6, 2026 Coalition ESS Score
- Nov 21, 2026 Security Advisory (9 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-3824
vulnetix vdb fixes CVE-2023-3824
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-3824/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- poc-cve exploit
- CVE-2023-3824 exploit
- cve-2023-3824 exploit