[php-src] Issue #24815: [SECURITY] BUG-088: Deserialization - Unsafe unserialize() / Phar Metadata Deserialization
| From: | Codeleafly | Date: | Wed, 28 Oct 2026 01:48:53 +0000 |
| Subject: | [php-src] Issue #24815: [SECURITY] BUG-088: Deserialization - Unsafe unserialize() / Phar Metadata Deserialization | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-253269@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24815
Author: Codeleafly
## 🐛 Security Bug Report
**Bug ID:** BUG-088
**Category:** Deserialization
**Subcategory:** Unsafe unserialize() / Phar Metadata Deserialization
**Severity:** Critical
**CWE:** CWE-502
**CVSS Score:** 9.0
**File:**
**Line:** multiple
**Status:** UNFIXED
**Verified:** False
### Description
php_var_unserialize() and phar metadata deserialization allow object injection. Crafted serialized
data can trigger __wakeup(), __destruct(), or gadget chains.
### Impact
Remote code execution, object injection, unauthorized access.
### Remediation
Avoid unserialize() on untrusted data. Use JSON or other safe formats. Implement allowed_classes
restrictions strictly.
### Exploitability
Remote - critical severity
### Source
- Repository: https://github.com/php/php-src/
- Branch: master
- Analysis Date: 2026-10-27T16:38:37.937347Z
---
*Auto-generated from static security analysis of php-src.*