[php-src] Issue #24831: [SECURITY] BUG-006: Buffer Overflow - Unsafe strcpy() Usage

From: Date: Wed, 28 Oct 2026 01:49:54 +0000
Subject: [php-src] Issue #24831: [SECURITY] BUG-006: Buffer Overflow - Unsafe strcpy() Usage
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-253285@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/24831 Author: Codeleafly ## 🐛 Security Bug Report **Bug ID:** BUG-006 **Category:** Buffer Overflow **Subcategory:** Unsafe strcpy() Usage **Severity:** High **CWE:** CWE-121 **CVSS Score:** 7.5 **File:** ext/pdo_dblib/pdo_dblib.c **Line:** multiple **Status:** UNFIXED **Verified:** False ### Description Unsafe strcpy() call detected without bounds checking. Potential stack/heap buffer overflow when source exceeds destination buffer size. ### Impact Arbitrary code execution, crash, or memory corruption via buffer overflow. ### Remediation Replace strcpy() with strlcpy() or strncpy() with explicit null termination and bounds checking. ### Exploitability Remote if attacker controls input data ### 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 (#253285) next »