CVE-2024-29196:
phpMyFAQ Path Traversal in Attachments
3.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.63341%
CWE
Published
3/25/2024
Updated
3/26/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
phpmyfaq/phpmyfaq | composer | = 3.2.5 | 3.2.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path sanitization in the configuration update handler. The original code (pre-patch) used a simple string replacement to remove '../' sequences, which is insufficient to prevent path traversal attacks. This logic was located in phpmyfaq/admin/configuration.php
where user-supplied attachment path values were processed. The commit diff shows the vulnerable pattern replacement was replaced with realpath()
validation and document root comparison, confirming this was the vulnerable code path. While no named function is explicitly shown, the procedural code handling configuration updates for 'records.attachmentsPath' directly enabled the traversal vulnerability through inadequate sanitization.