2.0Low

CVE-2025-55210FreePBX API has a Privilege Escalation Error in GraphQL Allowing Authenticated Users to Access Additional Scopes

FreePBX api Published: (9 months ago)

Description

FreePBX is an open-source web-based graphical user interface (GUI) that manages Asterisk. Prior to 17.0.5 and 16.0.17, FreePBX module api (PBX API) is vulnerable to privilege escalation by authenticated users with REST/GraphQL API access. This vulnerability allows an attacker to forge a valid JWT with full access to the REST and GraphQL APIs on a FreePBX that they've already connected to, possibly as a lower privileged user. The JWT is signed using the api-oauth.key private key. An attacker can generate their own token if they possess this key (e.g., by accessing an affected instance), and specify any scopes they wish (e.g., rest, gql), bypassing traditional authorization checks. However, FreePBX enforces that the jti (JWT ID) claim must exist in the database (api_access_tokens table in the asterisk MySQL database) in order for the token to be accepted. Therefore, the attacker must know a jti value that already exists on the target instance. This vulnerability is fixed in 17.0.5 and 16.0.17.

Weakness (CWE): CWE-270

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
FreePBX api >= 15.0.1alpha1, < 16.0.17, >= 17.0.0, < 17.0.5
sangoma freepbx 16.0.2 – < 16.0.17

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:* ≥ 16.0.2 < 16.0.17
  • cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:* ≥ 17.0.1 < 17.0.5