/

CVE-2026-57995

Severity:

HIGH RISK

(8.8)

Privilege Escalation (CWE-269) in phpMyFAQ Groups

CVE-2026-57995

Deferred

Vulnerability type

Category:

Privilege Escalation

CWE:

CWE-269

Impact:

Elevation of Privileges to Full Administrative Control

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

phpMyFAQ contains a privilege escalation flaw in its group permission update logic, allowing certain administrators to assign rights they do not actually hold.

When a delegated administrator with GROUP_EDIT capability can grant arbitrary permissions to a group they belong to, they inherit those elevated rights and can escalate to full administrative control.

Affected context

This vulnerability appears in phpMyFAQ deployments that use delegated administration via group-based permissions.

It becomes relevant where users with GROUP_EDIT rights can modify group permissions, and group membership is a primary mechanism for privilege inheritance.

In such setups, insufficient checks on whether the acting administrator truly possesses the permissions they assign can create an unintended path to full administrative control.

Exploit preconditions

  • Attack surface: Web administration interface for phpMyFAQ group management
  • Required access: An authenticated account granted GROUP_EDIT administrator capabilities
  • Trigger point: Invoking GroupController::updatePermissions to assign new rights to an existing group
  • Why exploitation is possible: The permission update logic does not verify that the acting administrator already holds the permissions they are assigning, so they can grant high-value rights to a group they belong to and inherit those rights.

Why this happens

The core issue is an authorization logic flaw where permission delegation is not constrained by the caller's own privileges.

Within GroupController::updatePermissions, the system trusts that any user with GROUP_EDIT can assign arbitrary permissions to a group, rather than enforcing that they may only propagate rights they already possess.

This aligns with CWE-269: Improper Privilege Management, where permission checks fail to ensure that elevation paths are blocked, allowing users to move from delegated roles to full administrative control via group membership.

Potential impact

  • A delegated administrator may escalate their privileges to full administrative control.
  • Sensitive configuration and access control settings could be modified or bypassed.
  • Critical content, FAQs, and user data can be viewed, altered, or deleted.
  • Security policies and audit settings may be disabled, undermining overall application security.

General mitigation guidance

Effective mitigation focuses on tightening authorization logic around permission delegation and group management.

Common defensive patterns include:

  • Ensuring that administrators can only assign permissions they already hold themselves.
  • Implementing explicit checks that prevent users from elevating their own group-derived privileges beyond their current role.
  • Centralizing permission verification so that group updates always pass through a consistent, least-privilege policy.
  • Separating high-value administrative rights from routine group management, reducing the risk of unintended escalation through membership changes.

How teams detect issues like this

Detection typically involves a mix of code-level review and runtime monitoring.

Useful approaches include:

  • Static analysis or manual code review focused on authorization checks, especially where permissions are created, updated, or propagated via groups.
  • Identifying controller actions that modify role or group permissions and verifying they compare requested rights with the actor's current privileges.
  • Logging and periodically reviewing changes to group permissions, particularly when made by non-root administrators, to spot unusual privilege assignments.
  • Enforcing development and QA policies that require explicit tests for privilege escalation paths in any access-control-related changes.

Sources

SourceLink
github.comgithub.com/thorsten/phpMyFAQ/security/advisories/GHSA-pg62-f8g4-4wqh
vulncheck.comvulncheck.com/advisories/phpmyfaq-privilege-escalation-via-missing-self-rights-constraint-in-groupcontroller-updatepermissions

Frequently asked

questions

Exploitability is limited to authenticated users with GROUP_EDIT capabilities, but within that scope it can reliably provide a path to full administrative control through group permission changes.

The attacker must be a delegated administrator or similar account granted GROUP_EDIT rights and belong to at least one group whose permissions they can modify.

The safest pattern is to enforce strict authorization checks so that users can only assign permissions they already possess, and to centralize permission evaluation to prevent any user from indirectly elevating their own privileges via group membership.

Future prevention relies on designing access-control logic around least privilege, requiring thorough review of any feature that modifies roles or group permissions, adding automated tests for escalation scenarios, and using security-focused code review to validate all authorization paths.

Find out what's already
exploitable in your codebase.