Skip to main content

phpMyFAQ CVE-2026-140383

| EUVDEUVD-2026-140260 HIGH
Weak Password Recovery Mechanism for Forgotten Password (CWE-640)
2026-12-01 VulnCheck GHSA-f42w-53m2-g4r2
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain stored password hash via backup, SQLi, or DB dump
  2. Exploit
    Compute HMAC reset token offline using hash as key
  3. Execution
    Submit forged reset link to set new password
  4. Impact
    Log in as victim account including super admin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Password recovery security
Exploitation Conditions

Exploitation requires the attacker to first READ the target account's stored password hash - the advisory names the concrete paths: the data backup (which contains every account's password hash, so an operator with only backup/export permission can escalate), any SQL injection or arbitrary database read primitive, or a leaked/exfiltrated database dump. The flaw is specific to phpMyFAQ\User\PasswordResetTokenService, which signs reset tokens with hash_hmac('sha256', userId.'|'.expires, storedPasswordHash) using the stored hash as the HMAC key with no server-side secret; this service exists ONLY on the 4.2.x line (new @since 2026-05-10) and is absent from 4.1.11 and the 4.1 branch, so stable deployments are not exposed. Limiting factors: the attacker gains nothing without prior hash read access (modeled as PR:H), no user interaction is required (UI:N), and the token also encodes userId and a (short) expiry that must be within validity. These constraints mean realistic risk is confined to environments where an attacker already holds backup access or a DB-read foothold.

Impact

This is a genuine high-impact account-takeover flaw (CWE-640/CWE-836) but one gated behind a meaningful precondition, so the signals are internally consistent rather than conflicting. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H) correctly encodes PR:H: the attacker must already be able to READ a stored password hash (via a database backup, SQL injection, arbitrary DB read, or a leaked DB dump) before the bug is usable. Once the hash is obtained, exploitation is trivial and fully offline (AC:L, AT:N), with full confidentiality/integrity/availability impact on the targeted account - up to and including super admin (user id 1) for complete administrative takeover. No EPSS score, CISA KEV listing, or SSVC automatable/technical-impact decision is provided in the input, so probabilistic and active-exploitation signals cannot be weighed; absence of KEV/EPSS here is missing data, not evidence of low risk. The vendor advisory includes a proof-of-concept, but it is a static code trace plus a local MariaDB reproduction of the signing design - a public PoC reference exists; it is not verified as working remote exploit code. The vuln.today Decision label is 'this_week', which is the correct urgency anchor: patch within the week, not an emergency, consistent with the privilege precondition. Net: a real priority for anyone running an affected 4.2.0 pre-release, but its reachability depends entirely on the attacker first achieving hash read access, which is why it is PR:H rather than a drive-by unauthenticated bug.

Exploit ScenarioDerived

An attacker who obtains any account's stored password hash - for example an operator holding only backup/export permission, or anyone with a leaked database dump or SQL-injection read primitive - feeds that hash as the HMAC key and computes a valid reset token (u, exp, sig) for the target entirely offline, with no hash cracking required. They then submit the forged reset link, set a new password, and log in as that account; targeting user id 1 yields full super-admin control. A proof-of-concept trace and a local reproduction of the token forgery are published in the GHSA advisory, though not as a packaged remote exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Account takeover in the phpMyFAQ 4.2.0 pre-release line (4.2.0-alpha through 4.2.0-RC.1) arises because PasswordResetTokenService HMAC-signs password-reset tokens using the target account's stored password hash as the key instead of a server-held secret, so anyone who can read that hash can forge a valid reset link offline without cracking it and set a new password, including for the super admin (user id 1). The precondition is substantial: the attacker must first obtain the hash from a data backup, a SQL injection or arbitrary database-read primitive, or a leaked database dump, which is why the assessed vector models high privileges required (CVSS:4.0 8.6 with PR:H; independent assessment CVSS:3.1 8.6, C:H/I:H/A:H). The stable 4.1.x line does not contain the vulnerable service and is unaffected, the issue is fixed in 4.2.0-RC.2, and the reporter supplied only a local, static-trace reproduction rather than confirmed public exploit code, so risk is concentrated in environments where an attacker already holds backup access or a database-read foothold; remediation is prioritized for this week.

RemediationAI

Vendor-released patch: upgrade to phpMyFAQ 4.2.0-RC.2 (Composer package fixed in 4.2.0-RC.2), which replaces hash-keyed signing of reset tokens; anyone running 4.2.0-alpha through 4.2.0-RC.1, or tracking the 4.2 main branch, should move to 4.2.0-RC.2 before 4.2.0 final ships so the regression is not carried into a release, and the advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-rph7-w6j6-2jq3 plus the VulnCheck write-up should be used to track the fix. If upgrading cannot happen immediately, the actionable compensating controls follow the disclosed attack paths: restrict the data backup/export permission so an operator holding only backup rights cannot read every stored hash (side effect: backup duties must be re-delegated to trusted administrators), close any SQL injection or arbitrary database-read exposure and prevent database dumps from being accessible, and rotate the passwords of accounts whose hashes may have been exposed, since a changed hash invalidates tokens forged from the old one (side effect: user disruption and credential redistribution). Note that the trust boundary is "can read a hash -> account takeover", so the backup-permission path is only one instance and these controls reduce, but do not eliminate, exposure until the RC.2 upgrade is applied.

Affected VersionsENISA

phpMyFAQ 4.2.0-alpha <4.2.0-RC.2

Affected Packages

euvd phpmyfaq fix: 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

phpMyFAQ\User\PasswordResetTokenService, new on the 4.2.x line (@since 2026-05-10), builds the reset token signature as hash_hmac('sha256', userId . '|' . expires, $passwordKey), where the caller in UnauthorizedUserController (issue path around line 130 and verify path around line 198) passes the stored password hash from $user->getEncryptedPassword(); verify() recomputes the same value and compares with hash_equals, and the class docblock describes the design explicitly. A password hash is a credential verifier, not a signing key: making it the HMAC key means the secret that protects the reset link is exactly the value an attacker reads in order to forge one, so possession of the hash collapses user id, expiry and signature into a fully offline computation (CWE-640 weak password recovery, CWE-836 use of password hash instead of password for authentication). Because the hash is per-account and changes on password change, the scheme does give single-use-on-password-change behaviour, but it provides no protection against hash disclosure through backups (which contain every account's hash), SQL injection, arbitrary database reads, or exfiltrated dumps. The service is absent from 4.1.11 and from the 4.1 branch, so the flaw is a 4.2.0 pre-release regression and not a defect in stable deployments; the suggested direction is an install-time server secret plus a server-side single-use nonce with short expiry.

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 8.6 HIGH
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
vuln.today AI 7.2 HIGH

PR:H and AC:L because the attacker must first read a stored password hash (privileged/backup or DB-read access), after which offline token forgery is deterministic; full C/I/A on the hijacked account.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/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
Low
Attack Requirements
None
Privileges Required
High
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

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 16:02 EUVD
CVE Published
Dec 01, 2026 - 14:29 cve.org
HIGH 8.6

DescriptionCVE.org

phpMyFAQ from 4.2.0-alpha before 4.2.0-RC.2 contains an authentication bypass vulnerability in PasswordResetTokenService that signs reset tokens using the stored password hash as HMAC key. Attackers who read a password hash via data backups, SQL injection, or database dumps can forge reset tokens offline to take over accounts including the super admin.

Technical POC Analysis

CWE-640 (Weak Password Recovery Mechanism for Forgotten Password), with CWE-836 (Use of Password Hash Instead of Password for Authentication) also mapped.

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

A high-severity flaw in the pre-release phpMyFAQ 4.2.0 line allows an attacker who has already obtained a password hash from a backup or database leak to forge password-reset tokens and take over any account, including the super administrator. Only organizations running 4.2.0-alpha through 4.2.0-RC.1 are exposed; stable 4.1.x environments are unaffected, so leadership should prioritize confirming whether any pre-release deployments are in use and treat this as a contained but serious risk to administrative access.

Business Impact: High
Compensating Controls

Apply vendor patch (upgrade to 4.2.0-RC.2 or later). Until patched, restrict access to affected instances, rotate credentials and sessions for all accounts, and audit backups and database read access for hash exposure.

Threat Intelligence Overview

EPSS Score
0.7%
Top 46% exploitable
Prevalence
Low
niche open-source FAQ application; affected code only in 4.2.0 pre-releases
Social Media
1
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 HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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