OpenSIPS 3.1 <= 3.6.4 auth_jwt SQL Injection Enables JWT Authentication Bypass
Published Feb 25, 2026
8.3
HIGHCVSS 4.0
EPSS 0.50%
Description
OpenSIPS versions 3.1 before 3.6.4 containing the auth_jwt module (prior to commit 3822d33) contain a SQL injection vulnerability in the jwt_db_authorize() function in modules/auth_jwt/authorize.c when db_mode 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 products
-
Affected
- ≥ 3.1, < 3.6.4
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
This is an IMPORTANT flaw in OpenSIPS. The vulnerability exists when the `auth_jwt` module is enabled, configured with `db_mode`, and utilizes a SQL database backend for JWT authorization. An attacker can exploit this specific configuration to bypass authentication and impersonate identities by crafting a malicious JWT. Systems are only affected if OpenSIPS is deployed with this particular configuration.
References (10)
- https://access.redhat.com/security/cve/CVE-2026-25554 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2442687 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-8694 Advisory
- https://github.com/OpenSIPS/opensips/commit/3822d33c1c6b25832fdd88da1d23eed74be55b05 patch
- https://github.com/OpenSIPS/opensips/pull/3807 issue-tracking
- https://nvd.nist.gov/vuln/detail/CVE-2026-25554
- https://opensips.org/ product
- https://opensips.org/pub/opensips/3.6.4/ChangeLog release-notes
- https://www.cve.org/CVERecord?id=CVE-2026-25554
- https://www.vulncheck.com/advisories/opensips-auth-jwt-sql-injection-enables-jwt-authentication-bypass third-party-advisory
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
GitHub
No data