Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-55210: CWE-270: Privilege Context Switching Error in FreePBX api

0
Low
VulnerabilityCVE-2025-55210cvecve-2025-55210cwe-270
Published: Thu Feb 12 2026 (02/12/2026, 16:22:42 UTC)
Source: CVE Database V5
Vendor/Project: FreePBX
Product: api

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 08:21:09 UTC

Technical Analysis

FreePBX, an open-source web GUI managing Asterisk PBX systems, contains a privilege escalation vulnerability (CVE-2025-55210) in its API module prior to versions 17.0.5 and 16.0.17. The vulnerability stems from a privilege context switching error (CWE-270) that allows authenticated users with REST or GraphQL API access to forge JSON Web Tokens (JWTs) signed with the api-oauth.key private key. Possession of this private key enables attackers to create tokens with arbitrary scopes, such as full REST and GraphQL API access, effectively bypassing normal authorization controls. However, FreePBX enforces that the JWT ID (jti) claim must correspond to an existing token entry in the api_access_tokens table within the Asterisk MySQL database, requiring attackers to know a valid jti value on the target system. This constraint reduces the ease of exploitation, as attackers must have prior access or knowledge of valid token identifiers. The vulnerability allows privilege escalation from lower-privileged authenticated users to full API access, potentially enabling unauthorized configuration changes or information disclosure. No public exploits have been reported to date. The issue is resolved in FreePBX versions 17.0.5 and 16.0.17 by correcting the privilege context handling and token validation mechanisms. The CVSS 4.0 vector indicates network attack vector, high attack complexity, partial authentication, and limited confidentiality and integrity impact, resulting in a low severity rating.

Potential Impact

The vulnerability enables authenticated users with limited API access to escalate privileges and gain full control over FreePBX's REST and GraphQL APIs. This can lead to unauthorized configuration changes, exposure of sensitive telephony data, and potential disruption of PBX services. Organizations relying on FreePBX for telephony infrastructure risk compromise of call routing, voicemail, and other critical communications functions. Although exploitation requires some prior access and knowledge, successful attacks could undermine the confidentiality and integrity of telephony systems, impacting business operations and privacy. The limited ease of exploitation and requirement for valid JWT IDs reduce widespread risk, but targeted attacks against organizations with exposed or poorly secured FreePBX instances remain a concern. No known exploits in the wild currently limit immediate widespread impact, but unpatched systems remain vulnerable.

Mitigation Recommendations

Organizations should immediately upgrade FreePBX installations to versions 17.0.5 or 16.0.17 or later to apply the official fix. In addition, restrict access to the FreePBX API by implementing strong network segmentation and firewall rules to limit API access only to trusted hosts and users. Rotate and securely store the api-oauth.key private key to prevent unauthorized token generation. Audit and monitor API access logs for unusual token usage or privilege escalation attempts. Implement strict database access controls to protect the api_access_tokens table and prevent leakage of valid jti values. Employ multi-factor authentication for API users to reduce the risk of credential compromise. Regularly review and minimize API scopes granted to users to follow the principle of least privilege. Finally, conduct penetration testing and vulnerability assessments focused on FreePBX API security to identify and remediate any residual weaknesses.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-08-08T21:55:07.966Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 698e0109c9e1ff5ad8eda2a5

Added to database: 2/12/2026, 4:34:17 PM

Last enriched: 2/27/2026, 8:21:09 AM

Last updated: 3/29/2026, 11:25:05 PM

Views: 134

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses