Summary
CVE-2026-130371 is an authentication bypass (CWE-306, Missing Authentication for Critical Function) in phpMyFAQ. The web installer ignores the legacy config/database.php file during upgrades from 3.x. An unauthenticated attacker can reinstall the site against an attacker-controlled database and gain administrator access. The CVE record rates it 9.2 (Critical) under CVSS v4.0.
Technical details
- Root cause: The installer’s installation check (
System::checkInstallation()) examines onlycontent/core/config/database.php. The application itself still accepts the legacyconfig/database.php. The installer therefore treats an instance that is mid-upgrade as not yet installed. - Trigger conditions: An administrator follows the 3.1.x/3.2.x to 4.x upgrade procedure. They keep the legacy
config/database.phpand deploy the 4.x package. They have not yet completed the migration by opening/update. The vendor advisory states that fresh 4.x installations and instances already upgraded from 4.x are not affected. - Attack vector: Network, no authentication, no user interaction. The attacker sends a POST request to
/setup/index.php/installwith attacker-chosen database credentials and admin account details. - Impact: The attacker’s
database.phpoverwrites the new configuration location. The result is a super-admin account on the victim’s site, operation on an attacker-controlled database, and a disrupted legitimate upgrade. The advisory also notes possible remote code execution through SQLite files in web-served directories with PHP execution enabled.
Affected software
- phpMyFAQ versions before 4.1.12
- phpMyFAQ 4.2.0-alpha builds before 4.2.0-RC.2
Severity
- CVSS v4.0: 9.2 (Critical), as listed in the CVE record. The vector string was not available in the sources reviewed.
- CVSS v3.1 (vendor advisory): 8.1 (High),
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to phpMyFAQ 4.1.12 or 4.2.0-RC.2 or later.
- If you are mid-upgrade from 3.x: Complete the migration promptly. Until then, restrict network access to
/setup/. - Defense in depth (from the vendor advisory): Block installer access with a maintenance mode, and keep SQLite files out of web-served directories.
- Check for unexpected admin accounts or changes to
content/core/config/database.phpon instances that were exposed during an upgrade.

