[php-src] Issue #24968: [SECURITY] BUG-143: Buffer Overflow - GD Image Processing Buffer Overflow

From: Date: Wed, 28 Oct 2026 01:51:51 +0000
Subject: [php-src] Issue #24968: [SECURITY] BUG-143: Buffer Overflow - GD Image Processing Buffer Overflow
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-253422@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/24968 Author: Codeleafly ## 🐛 Security Bug Report **Bug ID:** BUG-143 **Category:** Buffer Overflow **Subcategory:** GD Image Processing Buffer Overflow **Severity:** High **CWE:** CWE-119 **CVSS Score:** 7.5 **File:** ext/gd/libgd/gd_topal.c **Line:** multiple **Status:** UNFIXED **Verified:** False ### Description Image dimension values from file headers used directly in memory allocation without comprehensive bounds checking. Malformed image dimensions cause heap overflow. ### Impact Remote code execution via crafted image file, crash. ### Remediation Validate image dimensions against maximum allowed values before allocation. Use overflow2() consistently. ### Exploitability Remote via image upload ### 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*

« previous php.bugs (#253422) next »