[php-src] Issue #24862: [SECURITY] BUG-037: Buffer Overflow - Unsafe sprintf() Usage
| From: | Codeleafly | Date: | Wed, 28 Oct 2026 01:50:22 +0000 |
| Subject: | [php-src] Issue #24862: [SECURITY] BUG-037: Buffer Overflow - Unsafe sprintf() Usage | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-253316@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24862
Author: Codeleafly
## 🐛 Security Bug Report
**Bug ID:** BUG-037
**Category:** Buffer Overflow
**Subcategory:** Unsafe sprintf() Usage
**Severity:** High
**CWE:** CWE-121
**CVSS Score:** 7.5
**File:**
ext/mysqlnd/mysqlnd_auth.c
**Line:** multiple
**Status:** UNFIXED
**Verified:** False
### Description
Unsafe sprintf() call without size limitation. Format string overflow vulnerability when output
exceeds buffer capacity.
### Impact
Buffer overflow leading to arbitrary code execution or denial of service.
### Remediation
Replace sprintf() with snprintf() or spprintf() with proper size limits.
### Exploitability
Remote if format string or input is attacker-controlled
### 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*