Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach OpenSIPS SIP auth endpoint
-
DeliveryCraft JWT with malicious tag claim
-
ExploitClaim parsed before signature check
-
ExecutionSQL injection alters db lookup
-
PersistQuery returns attacker-chosen identity
-
ImpactBypass authentication and impersonate account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target to run the auth_jwt module with db_mode enabled and a SQL database backend configured - this is the exact prerequisite named in the description and encoded as AT:P in the CVSS 4.0 vector. The attacker must be able to send a SIP request carrying a crafted JWT to the OpenSIPS authentication endpoint, but needs no valid credentials or signing key (PR:N, UI:N) because the vulnerable code reads the tag claim before verifying the JWT signature. Limiting factors: deployments that do not use auth_jwt, that run it without db_mode, or that use a non-SQL backend are not exploitable, and network-level restrictions on the SIP interface further constrain who can deliver the malicious token. |
| Impact | Signals are mixed but lean toward a genuine, moderately-scoped priority rather than a mass-exploitation event. The CVSS 4.0 base score of 8.3 (High) reflects a network vector with low complexity and no privileges (AV:N/AC:L/PR:N/UI:N) but includes AT:P - an explicit attack requirement - because exploitation only works when db_mode is enabled with a SQL backend, a specific non-universal configuration. Impact is asymmetric: VC:H (an attacker can bypass authentication and read/impersonate protected identities) but VI:L and VA:N. Against that, EPSS is very low (0.07%, 20th percentile) and the CVE is not in CISA KEV, with no public exploit identified at time of analysis, so there is no evidence of active or widespread exploitation. The low EPSS is consistent with the configuration dependency and the niche module rather than contradicting the High CVSS. Bottom line: patch promptly if you run auth_jwt in db_mode with a SQL backend and expose SIP to untrusted networks; it is lower urgency for deployments not using that specific module/mode. |
| Exploit ScenarioDerived | An attacker who can reach an OpenSIPS instance that authenticates SIP requests with auth_jwt in db_mode crafts a JWT whose 'tag' claim contains a SQL injection payload, without needing any valid signing key because the claim is parsed before signature verification. The malicious claim manipulates the database lookup so the query returns an attacker-chosen account, letting them bypass JWT authentication and impersonate arbitrary identities. No public exploit is identified at time of analysis, but the low-complexity network vector makes weaponization straightforward for a knowledgeable attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jul 14, 2026
JWT authentication bypass in OpenSIPS 3.1 through 3.6.3 lets remote attackers impersonate arbitrary identities by exploiting a SQL injection in the auth_jwt module's jwt_db_authorize() function. The flaw affects only deployments where the module runs with db_mode enabled against a SQL database backend; the tag claim is read from the JWT and placed into a SQL query before the token signature is verified, so no valid signing key is needed. EPSS is low (0.07%, 20th percentile) and there is no public exploit identified at time of analysis, but the auth-bypass impact makes it a meaningful risk for exposed VoIP infrastructure.
Earlier versions of this analysis (2)
SQL injection in the OpenSIPS auth_jwt module (versions 3.1 through 3.6.3) allows remote unauthenticated attackers to bypass JWT authentication and impersonate arbitrary SIP identities. The jwt_db_authorize() function extracts the JWT 'tag' claim before verifying the token signature and concatenates the unescaped value directly into a database query, so a crafted tag claim manipulates the lookup result. There is no public exploit identified at time of analysis and the EPSS score is very low (0.07%), but the flaw is trivially exploitable where the module is deployed against a SQL backend.
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. [CVSS 6.5 MEDIUM]
RemediationAI
Vendor-released patch: upgrade to OpenSIPS 3.6.4 or later, which incorporates the fix from PR https://github.com/OpenSIPS/opensips/pull/3807 and commit https://github.com/OpenSIPS/opensips/commit/3822d33c1c6b25832fdd88da1d23eed74be55b05 that escapes the JWT tag claim via escape_common() before it enters the SQL query. If you cannot upgrade immediately, the most direct compensating control is to disable db_mode in the auth_jwt module and rely on a non-SQL authorization backend, which removes the injectable code path but changes how tag-to-identity mapping is resolved and may require reconfiguring account lookups. Alternatively, restrict network reachability of the SIP interface that performs JWT authentication to trusted peers (ACLs/firewall) so untrusted clients cannot submit crafted JWTs - this reduces exposure but does not fix the underlying flaw and breaks any legitimate remote clients that need access. Consult the 3.6.4 ChangeLog at https://opensips.org/pub/opensips/3.6.4/ChangeLog and the VulnCheck advisory for details.
Affected ProductsAI
OpenSIPS versions 3.1 up to but not including 3.6.4 are affected, specifically installations that load the auth_jwt module with db_mode enabled and a SQL database backend (commit 3822d33 and earlier). Deployments that do not use auth_jwt, or that use it without the database authorization path, are not exposed. No CPE string was provided in the input. Vendor resources are the project site https://opensips.org/ and the fixed-release changelog https://opensips.org/pub/opensips/3.6.4/ChangeLog, with the vulnerability advisory at https://www.vulncheck.com/advisories/opensips-auth-jwt-sql-injection-enables-jwt-authentication-bypass.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenSIPS is a high-performance open-source SIP server used as a proxy, registrar, and session border controller in VoIP and telecom deployments. The auth_jwt module validates JSON Web Tokens for SIP authentication; in database mode it looks up a 'tag' claim against a SQL table to map the token to an account. The root cause is CWE-89 (SQL Injection): in modules/auth_jwt/authorize.c, jwt_db_authorize() extracts the tag claim and concatenates the raw, unescaped value directly into the SQL query string. Critically, this extraction happens before signature verification, so an attacker fully controls the claim contents. The upstream fix (commit 3822d33, PR #3807, shipped in 3.6.4) routes the tag through escape_common(), which escapes single quotes, double quotes, backslashes, and null bytes into a heap-allocated buffer before it reaches the query.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable and unauthenticated (AV:N/PR:N), but AC:H reflects the required db_mode-plus-SQL-backend configuration; auth bypass gives C:H, injectable query gives I:L, no availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
5DescriptionCVE.org
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.
Executive ViewAI
OpenSIPS versions 3.1-3.6.3 contain an authentication bypass vulnerability in the auth_jwt module that allows remote attackers to impersonate arbitrary user identities when JWT authentication is enabled with SQL database backends. This affects organizations using OpenSIPS for VoIP signaling, creating risk of call interception, fraudulent call routing, and telecommunications fraud. With no vendor patch currently available and the bypass requiring no valid signing key, immediate remediation is required for Internet-facing deployments.
Disable the auth_jwt module if service requirements permit; if required, restrict network access to JWT endpoints through firewall rules and enforce network segmentation to prevent unauthenticated Internet-facing exposure of VoIP signaling infrastructure. Implement enhanced audit logging for all authentication events and alerting for anomalous identity claims, authentication failures, or calls from unexpected endpoints. Until a vendor patch is released, consider temporary failover to alternative authentication methods that do not depend on the vulnerable module.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB