[php-src] Issue #24935: [SECURITY] BUG-110: Path Traversal - Directory Traversal via ../ in File Operations
| From: | Codeleafly | Date: | Wed, 28 Oct 2026 01:51:23 +0000 |
| Subject: | [php-src] Issue #24935: [SECURITY] BUG-110: Path Traversal - Directory Traversal via ../ in File Operations | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-253390@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24935
Author: Codeleafly
## 🐛 Security Bug Report
**Bug ID:** BUG-110
**Category:** Path Traversal
**Subcategory:** Directory Traversal via ../ in File Operations
**Severity:** High
**CWE:** CWE-22
**CVSS Score:** 7.5
**File:**
main/php_ini.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*