Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as category-restricted editor
-
DeliverySend faq/update with untranslated lang
-
ExploitEmpty scope lookup bypasses category check
-
ExecutionRewrite record-keyed ACL to everyone and wipe tags
-
ImpactExpose restricted FAQ to anonymous readers
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Requires an authenticated phpMyFAQ editor account whose FAQ_EDIT right is restricted to specific categories or languages, and the instance must run with security.permLevel=medium (the level that introduced the bypassed category/language scoping in 4.2.0-alpha.2). The attacker controls both faqId and lang in the POST /admin/api/faq/update body and must supply a lang in which the target FAQ has no translation so that Relation::getCategories() returns [] and only their own allowed category is checked; a valid pmf-csrf-token copied from any reachable editor page is also needed. Limiting factors that reduce real-world risk: it is not remote-unauthenticated (PR:L - a restricted editor account is mandatory), it does not apply to 4.1.x or to permission levels other than medium, it affects only pre-release 4.2.0 builds (alpha.2 through RC.1), and impact is confined to FAQ visibility ACLs, tags, and overwriting of orphaned FAQs rather than full system compromise. |
| Impact | Signals point to a real but moderate-priority issue rather than an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) and CWE-639 (IDOR / authorization bypass through a user-controlled key) describe a network-reachable, low-complexity flaw that nonetheless requires PR:L - a valid, authenticated editor account that already holds a category- or language-restricted FAQ_EDIT right. Impact is explicitly low across the board (VC:L/VI:L, VA:N): an attacker can expose group/user-restricted FAQs to anonymous readers, wipe tags, hide FAQs from their intended audience, or overwrite orphaned FAQs, but cannot gain code execution or take down the service. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with this being an insider-privilege-escalation-of-visibility problem rather than a wormable RCE. No CISA KEV listing and no EPSS score are provided in the input, so there is no evidence of active or widespread exploitation; a detailed reproduction and a standalone PoC script are published in the VulnCheck/GHSA advisory, which lowers the barrier to exploitation by a motivated authenticated insider. Two caveats to verify: exploitation is gated on security.permLevel=medium (the advisory states 4.1.x and non-medium levels behave differently), and only pre-release 4.2.0 builds (alpha.2 through RC.1) are affected - so the real-world exposed population is small. |
| Exploit ScenarioDerived | A low-privileged editor whose FAQ_EDIT right is restricted to a single category sends POST /admin/api/faq/update targeting a FAQ outside their scope, but with a 'lang' value in which that FAQ has no translation; the scope lookup returns an empty category list, so only the attacker's own allowed category is checked and the request is authorized. The handler then rewrites the record-id-keyed visibility ACL to '-1' (everyone) and deletes the FAQ's tags, exposing a group-restricted FAQ to anonymous visitors. The advisory ships step-by-step reproduction and a standalone PoC script, though that script only replays the SQL/logic against in-memory SQLite and is not verified as a working exploit against a live instance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 17, 2026
Category- and language-restricted phpMyFAQ editors can rewrite the visibility ACLs and tags of any FAQ - including FAQs in categories they are not allowed to touch - by POSTing to /admin/api/faq/update with a target faqId and a lang in which that FAQ has no translation. The flaw exists in the pre-release 4.2.0 line (alpha.2 through RC.1 / current main) and only manifests when security.permLevel=medium, which is the setting that introduced the category and language scoping the bypass circumvents; it requires an authenticated editor account holding a scoped FAQ_EDIT right (PR:L), so it is not remotely exploitable without credentials. Impact is limited to FAQ visibility ACLs, tag links and overwriting/re-homing orphaned FAQs rather than system compromise, and the 4.2.0-RC.2 release contains the fix; the advisory ships a standalone PoC script that replays the controller's SQL against in-memory SQLite rather than booting phpMyFAQ, so a public PoC reference exists but it is not verified as working exploit code, and there is no confirmed active exploitation (no CISA KEV listing) - the vuln.today priority decision is this_month.
RemediationAI
Vendor-released patch: upgrade to phpMyFAQ 4.2.0-RC.2 (see the release at https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2 and the advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-cch2-977x-6vqj); any 4.2.0 pre-release from alpha.2 up to and including RC.1, and main prior to the fix, should be replaced with RC.2 or later. No configuration-based workaround is documented in the advisory, and downgrading to 4.1.x is not a mitigation - the advisory states 4.1.x simply has no category or language scoping, so every FAQ_EDIT holder can already edit all FAQs there. The bypass only exists on 4.2.0 builds that enable the category/language scoping introduced in alpha.2 (security.permLevel=medium), so instances that do not use that level neither expose this specific bypass nor benefit from the scoped editor rights it depends on. Where upgrading cannot be done immediately, the advisory's limiting factors are what reduce exposure: an attacker must hold an authenticated editor account whose FAQ_EDIT right is restricted to specific categories or languages, must supply a lang in which the target FAQ has no translation, and must have a valid pmf-csrf-token copied from a reachable editor page - so auditing editor group memberships and their category/language restrictions, and treating such accounts as trusted, bounds the population who can exercise the flaw. Because no public exploit code is verified as working and there is no KEV listing, the vendor's own release remains the only complete fix.
Affected VersionsENISA
Affected Packages
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
CWE-639 (Authorization Bypass Through User-Controlled Key) in phpMyFAQ's administrative API: FaqController::update() (route faq/update, phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php:377) derives the caller's authorization scope from the attacker-supplied pair (faqId, lang). It merges the categories named in the request body with Relation::getCategories($faqId, $faqLang), and that lookup (Category/Relation.php:384-397) filters on record_id = %d AND record_lang = '%s'. Supplying a language in which the target FAQ has no translation makes the lookup return an empty array, so only the attacker's own permitted category is validated by userHasPermissionForCategories(). Because there is no translation, the handler takes the create() branch with the existing id already set (->setId($faqId) line 489; Faq::create() preserves a non-null id, Faq.php:753), inserting a new (faqId, lang) row, and no publish right is needed because the new row resolves to Draft and resolveStatusChange() returns it unchanged when no status is sent, leaving the existing published translation live. Afterwards the handler writes data that is keyed by record id only and therefore shared across every language of the FAQ: Tags::create()/deleteByRecordId() wipe faqdata_tags for the record (Tags.php:168-169, 326), and Faq\Permission::delete()/add() run DELETE FROM %sfaqdata_%s WHERE record_id = %d (Faq/Permission.php:112) before re-inserting rows from createPermissionArray(), which accepts userpermission/grouppermission ('all' becoming -1, i.e. everyone) and restricted_users/restricted_groups straight from the request body. Public read paths join faqdata_user and faqdata_group on record_id with no language column (Faq/FaqRepository.php:269, 427, 526) and filter via QueryHelper::queryPermission(), which is why ACL changes to a de-language FAQ take effect immediately for anonymous readers. A second variant affects uncategorized (orphaned) FAQs: AbstractController::userHasPermissionForCategories() (Controller/AbstractController.php:427-439) rejects uncategorized content for category-restricted users only when the merged category list is empty, so adding one permitted category lets the request pass and lines 535-536 then overwrite the orphan's question/answer and re-home it into the attacker's category. Notably, the classic admin edit page (Controller/Administration/FaqController.php:281-284) validates the FAQ's real categories and returns 403 for the same targets, while the API endpoint does not. The category-scoped and language-scoped permission logic being bypassed shipped in commits c43e83004 (#4311) and 83db240a7 (#4312), both first released in 4.2.0-alpha.2, which is why 4.1.x is not affected as a scope bypass - it has no category or language scoping at all, so any FAQ_EDIT holder can already edit every FAQ.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network API with low complexity but requires an authenticated restricted-editor account (PR:L); limited confidentiality (exposing restricted FAQs) and integrity (rewriting ACLs/tags, overwriting orphans), no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
phpMyFAQ from 4.2.0-alpha.2 before 4.2.0-RC.2 contains an authorization bypass that lets category- or language-restricted editors rewrite visibility ACLs and tags of any FAQ. Attackers send faq/update requests with a target faqId and an untranslated lang to expose restricted FAQs, wipe tags, or overwrite orphaned FAQs.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Related Vulnerabilities in phpMyFAQ Authorization Bypass and Info Disclosure
View all 27Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una
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
EUVD-2026-126791
GHSA-2f6h-rh8g-h6ph
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB