[php-src] Issue #24940: [SECURITY] BUG-115: Symbolic Link - Insecure Symlink Handling

From: Date: Wed, 28 Oct 2026 01:51:27 +0000
Subject: [php-src] Issue #24940: [SECURITY] BUG-115: Symbolic Link - Insecure Symlink Handling
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-253394@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/24940 Author: Codeleafly ## 🐛 Security Bug Report **Bug ID:** BUG-115 **Category:** Symbolic Link **Subcategory:** Insecure Symlink Handling **Severity:** High **CWE:** CWE-61 **CVSS Score:** 6.8 **File:** main/streams/plain_wrapper.c **Line:** multiple **Status:** UNFIXED **Verified:** False ### Description Symbolic links not properly validated before file operations. Attacker can create symlinks to sensitive files. ### Impact Arbitrary file read, privilege escalation, sensitive data exposure. ### Remediation Use lstat() to detect symlinks, disable symlink following where not needed, validate link targets. ### Exploitability Local or remote via file upload ### 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 (#253394) next »