Skip to main content

phpMyFAQ CVE-2026-130371

| EUVDEUVD-2026-126776 CRITICAL
Missing Authentication for Critical Function (CWE-306)
2026-11-17 VulnCheck GHSA-8jv7-r3x9-rhmp
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify phpMyFAQ site mid 3.x upgrade
  2. Delivery
    Confirm /setup/ returns installer (HTTP 200)
  3. Exploit
    POST attacker DB and admin credentials to /setup/index.php/install
  4. Execution
    Installer writes content/core/config/database.php, locks itself
  5. Persist
    Attacker super-admin on attacker-controlled database
  6. Impact
    Full application takeover (optional RCE via SQLite on Apache)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target to be in the middle of the documented, default 3.1.x/3.2.x-to-4.x upgrade: the 4.x package deployed with the legacy config/database.php retained, but /update not yet completed - so only the legacy config file exists and System::checkInstallation() (which inspects only content/core/config/database.php) wrongly reports the instance as not installed, exposing /setup/ with no authentication, method restriction, or CSRF check. No configuration change is needed and maintenance mode does not help, since setup/index.php never loads the application config. Limiting factors: the attacker must hit this upgrade window (reflected in AC:H / AT:P); since phpMyFAQ 4.2 the /update wizard also needs a token the admin fetches over FTP/SSH, lengthening but still bounding the window. Optional remote code execution is further gated - it needs the SQLite install variant plus Apache executing PHP in content/user/images/ (not blocked by the stock .htaccess); under the stock nginx configuration impact stays at full takeover without RCE.

Impact

This is a genuine priority, not an inflated high-CVSS score. The input assigns a CVSS 4.0 base of 9.2 (AV:N/AC:H/AT:P/PR:N/UI:N with full VC:H/VI:H/VA:H) and a vuln.today Decision label of act_now, reported by VulnCheck, with a vendor patch available. The signals are internally consistent: network vector, no authentication (PR:N), and no user interaction, yielding complete compromise of confidentiality, integrity, and availability. The one tempering factor is AC:H / AT:P, which the advisory explains concretely: exploitation is only possible during the narrow window of a documented 3.1.x/3.2.x-to-4.x upgrade, before /update completes. No EPSS score and no CISA KEV entry were provided, and the vulnerability is NOT listed as actively exploited - so the act_now urgency rests on severity plus a detailed public advisory rather than on observed in-the-wild activity. A public PoC reference exists (the GHSA advisory and VulnCheck writeup), but it is not verified as working end-to-end exploit code: the researcher confirmed the core detection flaw with a standalone harness exercising the real System::checkInstallation() and ConfigDirectoryResolver, but explicitly did not run the full HTTP install chain end to end. Net: high-severity, high-confidence vulnerability class with a real but conditional trigger window - prioritize patching for any instance that is or will be mid-upgrade.

Exploit ScenarioDerived

An unauthenticated attacker locates a phpMyFAQ site that administrators have partially upgraded from 3.x to 4.x - new package deployed, legacy config/database.php still in place, /update not yet run - and finds /setup/ returns HTTP 200 instead of 403. They POST their own database and admin credentials to /setup/index.php/install, which writes content/core/config/database.php pointing at an attacker-controlled database and grants them a super-admin account, taking over the live site. A detailed public PoC reference exists in the GHSA advisory, though it was not verified as a full working HTTP exploit; the high attack complexity reflects the need to hit the upgrade window.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 17, 2026

Unauthenticated takeover of phpMyFAQ is possible whenever a live installation sits inside the documented 3.1.x/3.2.x-to-4.x upgrade window: the 4.x package is deployed with the legacy config/database.php retained but /update has not yet run, so the web installer's installed-check wrongly reports the site as not installed and exposes /setup/. An attacker can then POST /setup/index.php/install with their own database settings and administrator credentials, writing content/core/config/database.php, which thereafter takes precedence over the legacy file so every frontend, admin, API and /update request runs against the attacker's database with the attacker as super admin. The flaw is rated 9.2 (CVSS 4.0) / high severity under CVSS 3.1 with AC:H, carries a vuln.today decision of act_now, and is not in CISA KEV; the vendor advisory includes a standalone PoC harness that exercises the real guard, resolver and config-writer on a simulated upgrade layout, but it is not verified as working end-to-end exploit code against a live HTTP instance.

RemediationAI

Vendor-released patches fix the issue: upgrade to phpMyFAQ 4.1.12 (https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12) or 4.2.0-RC.2 (https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2), which include commit eae6674d64bb6f53caf703d3f38b657f0c16a13c adding System::hasDatabaseConfiguration() so the installer refuses to run when any database configuration the application would boot from exists, and wire ConfigDirectoryResolver::resolve() into setup/index.php. If upgrading immediately is not possible, the effective compensating control is to block the installer at the web server for the whole upgrade window - deny or return 403 for /setup/ and /setup/index.php/install (and preferably remove or rename the setup/ directory after deployment, restoring it only if a reinstall is genuinely needed), which costs nothing functionally because a correctly upgraded instance does not use the installer; note that maintenance mode does not help, since setup/index.php never loads the application configuration. Administrator-side hardening named in the advisory, as defense in depth: restrict /setup/install to POST with a session-bound CSRF token issued by GET /setup/, and reject SQLite paths outside a non-web-served data directory, which also removes the optional code-execution route via content/user/images/. Completing the documented /update promptly shrinks the exposure window, but since 4.2 the update wizard itself requires a token fetched over FTP or SSH, so that window can be long and should not be relied on as the sole mitigation.

Affected VersionsENISA

phpMyFAQ 4.2.0-alpha <4.2.0-RC.2
phpMyFAQ 0 <4.1.12

Affected Packages

euvd phpmyfaq fix: 4.1.12, 4.2.0-RC.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Root cause is CWE-306 (missing authentication for a critical function). phpMyFAQ since 4.0.0 stores its database configuration in content/core/config/database.php, but src/Bootstrap/ConfigDirectoryResolver.php still falls back to the legacy 3.x path config/database.php (PMF_LEGACY_CONFIG_DIR) when the new file is absent, and Migration400Alpha only copies the legacy file into content/core/config when /update actually runs. The single install gate, System::checkInstallation() in phpmyfaq/src/phpMyFAQ/System.php, checked only PMF_ROOT_DIR . '/content/core/config/database.php', so a site running correctly from the legacy file was reported as not installed. setup/index.php defines only PMF_ROOT_DIR and never runs the Bootstrapper or ConfigDirectoryResolver, so PMF_LEGACY_CONFIG_DIR is unknown there and the check cannot see the legacy file; the '/' and '/install' routes are registered with no method restriction, no authentication and no CSRF check, and SetupController/Installer rely only on that one gate. InstallationInputValidator takes sql_type, sql_server, sql_user, sql_password, sql_db and sql_sqlitefile straight from INPUT_POST, with sql_sqlitefile accepting an arbitrary filesystem path, and InstallationRunner::createDatabaseFile() writes content/core/config/database.php - which ConfigDirectoryResolver then prefers over the legacy file. The same gap had already been closed for the CLI in commit b3e4d4c9a but not for the web installer. The supplied commit adds System::hasDatabaseConfiguration(), which scans content/core/config, config, PMF_CONFIG_DIR and PMF_LEGACY_CONFIG_DIR for database.php so the installer refuses to run when any bootable configuration exists. The high attack-complexity metric reflects the requirement to hit the upgrade window (or, for the optional code-execution chain, to combine the SQLite install variant with a web server that executes PHP under content/user/images/, which the stock Apache .htaccess does not block while the stock nginx configuration passes only front controllers to PHP and therefore limits impact to takeover); the trigger mechanics for the installer exposure itself are fully described in the advisory.

Know when Phpmyfaq gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.2 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Remote, unauthenticated, no user interaction (AV:N/PR:N/UI:N); AC:H because exploitation is confined to the transient documented upgrade window; full C/I/A loss from database and admin takeover.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains an authentication bypass vulnerability because the web installer ignores the legacy config/database.php during 3.x upgrades. Unauthenticated attackers can reinstall the site against an attacker-controlled database and create their own administrator account to take over the application.

Technical POC Analysis

CWE-306: Missing Authentication for Critical Function.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-130371 is a critical vulnerability in phpMyFAQ that allows unauthenticated attackers to take complete control of installations transitioning from version 3.1.x/3.2.x to 4.x if the /update process hasn't been completed. This affects organizations with live phpMyFAQ deployments during this upgrade window, potentially exposing sensitive data, enabling administrative takeover, and undermining service integrity. Leadership should prioritize immediate verification and remediation of any affected systems.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 54% exploitable
Prevalence
Medium
popular open-source FAQ/knowledge-base web application, moderate real-world footprint
Social Media
3
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2025-59943 CRITICAL POC
9.8 Oct 03

Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una

CVE-2023-5865 CRITICAL POC
9.8 Oct 31

Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8

CVE-2023-1886 CRITICAL POC
9.8 Apr 05

Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity

CVE-2023-1753 CRITICAL POC
9.8 Mar 31

Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t

CVE-2022-3754 CRITICAL POC
9.8 Oct 29

Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th

CVE-2026-46364 CRITICAL POC
9.3 May 15

Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and

CVE-2017-15730 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS

CVE-2017-15808 HIGH POC
8.8 Oct 23

In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is

CVE-2017-15735 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS

CVE-2017-15734 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8

CVE-2024-28107 HIGH POC
8.8 Mar 25

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi

CVE-2024-27299 HIGH POC
8.8 Mar 25

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy