[php-src] Issue #24902: [SECURITY] BUG-077: Format String - Potential Format String Vulnerability
| From: | Codeleafly | Date: | Wed, 28 Oct 2026 01:50:55 +0000 |
| Subject: | [php-src] Issue #24902: [SECURITY] BUG-077: Format String - Potential Format String Vulnerability | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-253356@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24902
Author: Codeleafly
## 🐛 Security Bug Report
**Bug ID:** BUG-077
**Category:** Format String
**Subcategory:** Potential Format String Vulnerability
**Severity:** High
**CWE:** CWE-134
**CVSS Score:** 7.5
**File:**
main/fopen_wrappers.c
**Line:** multiple
**Status:** UNFIXED
**Verified:** False
### Description
printf-family function called with potentially user-controlled format string. Attacker can inject
%n, %s, %x format specifiers.
### Impact
Memory read/write, arbitrary code execution, crash.
### Remediation
Always use format string literal as first argument: printf("%s", user_input) instead of
printf(user_input).
### Exploitability
Remote if input reaches format string
### 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*