CVE-2026-25554: OpenSIPS 3.1 <= 3.6.4 auth_jwt SQL Injection Enables JWT Authentication Bypass
OpenSIPS versions 3.1 before 3.6.4 containing the authjwt module (prior to commit 3822d33) contain a SQL injection vulnerability in the jwtdbauthorize() function in modules/authjwt/authorize.c when dbmode is enabled and a SQL database backend is used. The function extracts the tag claim from a JWT without prior signature verification and incorporates the unescaped value directly into a SQL query. An attacker can supply a crafted JWT with a malicious tag claim to manipulate the query result and bypass JWT authentication, allowing impersonation of arbitrary identities.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
OpenSIPS auth_jwt (versions 3.1 <= 3.6.4)to a version that resolves this vulnerability.Fixed in 3.6.4Patch commit 3822d33
Event History
Frequently Asked Questions
What is the severity of CVE-2026-25554?
CVE-2026-25554 is classified with a high severity due to its potential for SQL injection attacks that can lead to JWT authentication bypass.
How do I fix CVE-2026-25554?
To fix CVE-2026-25554, upgrade OpenSIPS to version 3.6.4 or later to eliminate the vulnerability in the auth_jwt module.
What versions of OpenSIPS are affected by CVE-2026-25554?
CVE-2026-25554 affects OpenSIPS versions 3.1 through 3.6.4 prior to commit 3822d33.
Is CVE-2026-25554 exploitable remotely?
Yes, CVE-2026-25554 is remotely exploitable, allowing attackers to execute SQL injection attacks through JWT authentication.
What function is vulnerable in CVE-2026-25554?
The jwt_db_authorize() function in OpenSIPS is vulnerable to SQL injection in CVE-2026-25554.