---
id: "CVE-2026-130371"
page: "https://infrastack.ai/live/CVE-2026-130371"
kind: "vulnerability"
aliases: ["CVE-2026-130371"]
title: "phpMyFAQ: web installer lets anyone reinstall and create an admin account"
severity: "critical"
cvss: 9.2
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["package", "php", "phpmyfaq", "self-hosted"]
not_affected_if: ["installer-removed", "no-3x-upgrade"]
published_at: "2026-11-17T02:17:20+00:00"
first_seen_at: "2026-11-17T02:40:32+00:00"
updated_at: "2026-11-17T02:42:11+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-130371", "first_seen_at": "2026-11-17T02:40:32+00:00"}]
exploit_sources: []
---

# phpMyFAQ: web installer lets anyone reinstall and create an admin account

Link for people: https://infrastack.ai/live/CVE-2026-130371 (this .md is for agents)

phpMyFAQ's web installer ignores the legacy config/database.php during 3.x upgrades, so it can be run against an attacker-controlled database. An unauthenticated attacker can then create their own administrator account and take over the application.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed phpMyFAQ version in the admin panel or in the release files; a version below `4.1.12` on the 4.1 line, or below `4.2.0-RC.2` on the 4.2 alpha line, is affected.
- Check whether the installer is reachable from the internet, for example by requesting the `/setup/` path on the site.
- Check for a leftover `config/database.php` from a 3.x install on the server.

## Fix

- phpMyFAQ `4.1.12` for the 4.1 line
- phpMyFAQ `4.2.0-RC.2` for the 4.2 alpha line

## Timeline

- 2026-11-17T02:40:32+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-130371

## Documents

- [advisory] Vendor advisory: github.com https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-jhf3-22r2-88hm
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/phpmyfaq-before-4.1.12-and-4.2.0-alpha-before-4.2.0-rc.2-unauthenticated-reinstall-via-web-installer
- [fix] Patch: github.com https://github.com/thorsten/phpMyFAQ/commit/eae6674d64bb6f53caf703d3f38b657f0c16a13c
- [fix] Release notes: github.com https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12
- [fix] Release notes: github.com https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
