CVE-2026-66397

phpMyFAQ before 4.1.6 Path Traversal via category image deletion

Published Jul 27, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
phpMyFAQ before 4.1.6 fails to validate path traversal sequences in the existing_image field during category updates, allowing authenticated attackers to delete arbitrary files by exploiting insufficient sanitization in Image::delete(). Attackers can delete the database.php configuration file to disable the installation gate and access the public setup wizard to create new superadmin accounts.

Analysis

AI-generated

Technical impact

phpMyFAQ versions prior to 4.1.6 are vulnerable to a path traversal attack triggered during category image deletion. An authenticated user can supply a path that resolves outside the intended directory, enabling them to delete any file on the system. By targeting the configuration file that controls the installation gate, an attacker can remove it and trigger the public setup wizard, which then allows the creation of new superadmin accounts. The vulnerability is an input validation weakness classified as CWE‑22.

Affected Systems

All installations of phpMyFAQ that are version 4.1.5 or earlier, produced by Thorsten, are affected.

Risk and Exploitability

The flaw carries a CVSS score of 8.6, indicating high severity. The EPSS score of < 1% indicates a very low but nonzero exploitation probability, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires a valid authenticated account, after which arbitrary files can be removed, compromising confidentiality, integrity and availability, and enabling the attacker to gain full administrative control through the setup wizard.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade phpMyFAQ to version 4.1.6 or newer to apply the vendor fix.
  • Restrict category image deletion privileges so that only administrators can perform the action.
  • Set strict file system permissions on critical files such as database.php to prevent deletion by the web application.

Generated by OpenCVE AI on August 3, 2026 at 17:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Phpmyfaq
Phpmyfaq phpmyfaq
CPEs cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:*
Vendors & Products Phpmyfaq
Phpmyfaq phpmyfaq
Type Values Removed Values Added
First Time appeared Thorsten
Thorsten phpmyfaq
Vendors & Products Thorsten
Thorsten phpmyfaq
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description phpMyFAQ before 4.1.6 fails to validate path traversal sequences in the existing_image field during category updates, allowing authenticated attackers to delete arbitrary files by exploiting insufficient sanitization in Image::delete(). Attackers can delete the database.php configuration file to disable the installation gate and access the public setup wizard to create new superadmin accounts.
Title phpMyFAQ before 4.1.6 Path Traversal via category image deletion
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:06 AM
Reserved
Jul 26, 2026, 12:22 PM
Status
Deferred
Published
Jul 27, 2026, 4:18 PM
Modified
Oct 24, 2026, 1:10 PM