[php-src] Issue #24905: [SECURITY] BUG-080: Format String - Potential Format String Vulnerability

From: Date: Wed, 28 Oct 2026 01:50:58 +0000
Subject: [php-src] Issue #24905: [SECURITY] BUG-080: Format String - Potential Format String Vulnerability
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-253359@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/24905 Author: Codeleafly ## 🐛 Security Bug Report **Bug ID:** BUG-080 **Category:** Format String **Subcategory:** Potential Format String Vulnerability **Severity:** High **CWE:** CWE-134 **CVSS Score:** 7.5 **File:** sapi/phpdbg/phpdbg_watch.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*

« previous php.bugs (#253359) next »