[php-src] Issue #24946: [SECURITY] BUG-121: Memory Safety - Off-by-One Buffer Boundary Error
| From: | Codeleafly | Date: | Wed, 28 Oct 2026 01:51:32 +0000 |
| Subject: | [php-src] Issue #24946: [SECURITY] BUG-121: Memory Safety - Off-by-One Buffer Boundary Error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-253400@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24946
Author: Codeleafly
## 🐛 Security Bug Report
**Bug ID:** BUG-121
**Category:** Memory Safety
**Subcategory:** Off-by-One Buffer Boundary Error
**Severity:** Medium
**CWE:** CWE-193
**CVSS Score:** 5.5
**File:**
main/streams/streams.c
**Line:** multiple
**Status:** UNFIXED
**Verified:** False
### Description
Off-by-one error in buffer bounds checking may allow one byte overflow past buffer boundary.
### Impact
Heap metadata corruption, crash, potential code execution.
### Remediation
Review all buffer size calculations, ensure < not <= where appropriate, add bounds assertions.
### Exploitability
Medium
### 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*