[php-src] Issue #24877: [SECURITY] BUG-052: Integer Overflow - Image Dimension Multiplication Overflow
| From: | Codeleafly | Date: | Wed, 28 Oct 2026 01:50:34 +0000 |
| Subject: | [php-src] Issue #24877: [SECURITY] BUG-052: Integer Overflow - Image Dimension Multiplication Overflow | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-253330@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24877
Author: Codeleafly
## 🐛 Security Bug Report
**Bug ID:** BUG-052
**Category:** Integer Overflow
**Subcategory:** Image Dimension Multiplication Overflow
**Severity:** High
**CWE:** CWE-190
**CVSS Score:** 7.3
**File:**
ext/gd/libgd/gdxpm.c
**Line:** multiple
**Status:** UNFIXED
**Verified:** False
### Description
Integer overflow in image dimension multiplication (width * height * channels). overflow2() check
may not catch all overflow paths leading to undersized buffer allocation.
### Impact
Heap buffer overflow, arbitrary code execution via crafted image file.
### Remediation
Add comprehensive overflow checks before all memory allocation size calculations in image
processing.
### Exploitability
Remote via specially crafted image file
### 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.*
*Total bugs found: 161*