Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
7DescriptionCVE.org
phpMyFAQ before 4.1.3 contains an insecure direct object reference vulnerability in the admin API user password endpoint that allows authenticated administrators to change any user's password without authorization verification. An attacker with low-privilege admin credentials can escalate to SuperAdmin by modifying the userId parameter in the overwrite-password API request.
AnalysisAI
Privilege escalation in phpMyFAQ before 4.1.3 allows any authenticated low-privilege administrator to take over SuperAdmin (userId=1) or any other account by manipulating the userId parameter in the /admin/api/user/overwrite-password PUT request. The flaw is an insecure direct object reference (IDOR) in the Admin API where authorization checks confirm only that the caller holds the generic USER_EDIT permission, never that the caller is authorized to manage the targeted account. No public exploit identified at time of analysis, but the GHSA advisory from the vendor (thorsten) publicly documents the exact vulnerable code path, making weaponization trivial.
Technical ContextAI
phpMyFAQ is a popular open-source PHP-based FAQ management system maintained by Thorsten Rinne and distributed via Composer (composer/thorsten/phpmyfaq and composer/phpmyfaq/phpmyfaq, per CPE cpe:2.3:a:thorsten:phpmyfaq). The root cause maps to CWE-266 (Incorrect Privilege Assignment): in phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/UserController.php (lines 232-271), the overwritePassword() method calls userHasUserPermission() - which only verifies the generic USER_EDIT capability - and then trusts the client-supplied userId from the JSON body to select which account's password to reset. CSRF is verified, but no horizontal or vertical authorization check confirms the caller is allowed to manage the targeted user or that the target's privilege level is equal or lower than the caller's, so a low-tier admin can pivot to userId=1 (SuperAdmin).
RemediationAI
Vendor-released patch: upgrade phpMyFAQ to version 4.1.3 or later via Composer (thorsten/phpmyfaq or phpmyfaq/phpmyfaq), per GHSA-xvp4-phqj-cjr3 (https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-xvp4-phqj-cjr3). If immediate upgrade is not possible, restrict network access to the /admin path (for example via a reverse proxy ACL, IP allowlist, or VPN-only access) so that only trusted operators can reach the admin API surface - this prevents exploitation but blocks remote admin workflows for legitimate users. As an additional compensating control, audit and reduce the number of accounts holding the USER_EDIT permission and rotate all admin and SuperAdmin passwords after patching, since prior compromise of any admin account is sufficient to have already pivoted to SuperAdmin; note that password rotation alone does not remediate the bug, only upgrading does. Additional context is available in the VulnCheck advisory at https://www.vulncheck.com/advisories/phpmyfaq-insecure-direct-object-reference-in-user-password-api.
Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8
Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th
Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS
In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
Improper Privilege Management in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated high severity (CVSS 8.8), th
Same weakness CWE-266 – Incorrect Privilege Assignment
View allSame technique Privilege Escalation
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-32902
GHSA-xvp4-phqj-cjr3