[php-src] Issue #24937: [SECURITY] BUG-112: Path Traversal - Directory Traversal via ../ in File Operations

From: Date: Wed, 28 Oct 2026 01:51:25 +0000
Subject: [php-src] Issue #24937: [SECURITY] BUG-112: Path Traversal - Directory Traversal via ../ in File Operations
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-253391@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/24937 Author: Codeleafly ## 🐛 Security Bug Report **Bug ID:** BUG-112 **Category:** Path Traversal **Subcategory:** Directory Traversal via ../ in File Operations **Severity:** High **CWE:** CWE-22 **CVSS Score:** 7.5 **File:** main/fopen_wrappers.c **Line:** multiple **Status:** UNFIXED **Verified:** False ### Description File operations may not properly sanitize ../ sequences in paths. open_basedir restrictions may be bypassable. ### Impact Arbitrary file read/write outside intended directory, sensitive file access. ### Remediation Use realpath() to canonicalize paths, validate against allowed directory prefix, enforce open_basedir strictly. ### Exploitability Remote via file upload/include parameters ### 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 (#253391) next »