CVE-2024-29196: phpmyfaq/phpmyfaq - Path Traversal in Attachments

phpmyfaq/phpmyfaq Updated 02 Oct 2025

Summary

25/03/2024
Yes i
Low
3.8

CVE-2024-29196: phpMyFAQ Path Traversal in Attachments. Affects phpmyfaq/phpmyfaq versions >= 3.2.5, < 3.2.6. Fixed in 3.2.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

phpmyfaq/phpmyfaq is a package available on Packagist that provides a frequently asked questions (FAQ) system for websites. It allows administrators to manage and display FAQs on their websites, including the ability to upload attachments to the FAQs. This vulnerability specifically affects the attachment functionality of phpmyfaq/phpmyfaq.

Vulnerability Detail

A Path Traversal vulnerability exists in the Attachments feature of phpmyfaq/phpmyfaq. Attackers with admin rights can exploit this vulnerability to upload malicious files to arbitrary locations within the web root. By manipulating the attachment location setting, an attacker can traverse directories and upload files outside of the intended directory. This can lead to potential remote code execution or unauthorized access to sensitive files.

How To Fix

Minimum fixed version

3.2.6

This is the first release that contains the fix.

composer require phpmyfaq/phpmyfaq:3.2.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can manually validate the attachment file path before allowing the upload. This can be done by checking if the specified path is within the intended directory and rejecting any paths that contain directory traversal characters. Here is an example of how to perform this validation in PHP:

$attachmentPath = $_POST['attachment_path'];
$intendedDirectory = '/path/to/intended/directory';

if (strpos($attachmentPath, '..') === false && strpos($attachmentPath, $intendedDirectory) === 0) {
    // Proceed with the attachment upload
} else {
    // Reject the attachment
}

Conclusion

The Path Traversal vulnerability in phpmyfaq/phpmyfaq Attachments allows attackers with admin rights to upload malicious files to arbitrary locations within the web root. Upgrading to version 3.2.6 or later of phpmyfaq/phpmyfaq is recommended to fix this vulnerability. In the meantime, users can implement the provided workaround to mitigate the risk. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for phpmyfaq/phpmyfaq →

Share this vulnerability

FAQ

The vulnerability allows attackers with admin rights to upload malicious files to arbitrary locations within the web root. This can lead to potential remote code execution or unauthorized access to sensitive files.

Users of phpmyfaq/phpmyfaq versions 3.2.5 and earlier are affected by this vulnerability.

Yes, upgrading to version 3.2.6 of phpmyfaq/phpmyfaq or later fixes this vulnerability.

Yes, users can manually validate the attachment file path to prevent path traversal attacks. See the 'workaround' section for more details.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyfaq/phpmyfaq.

How To Fix

Minimum fixed version

3.2.6

This is the first release that contains the fix.

composer require phpmyfaq/phpmyfaq:3.2.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback