Skip to main content

OpenSIPS CVE-2026-25554

HIGH
SQL Injection (CWE-89)
2026-02-25 disclosure@vulncheck.com
8.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach OpenSIPS SIP auth endpoint
  2. Delivery
    Craft JWT with malicious tag claim
  3. Exploit
    Claim parsed before signature check
  4. Execution
    SQL injection alters db lookup
  5. Persist
    Query returns attacker-chosen identity
  6. Impact
    Bypass 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jul 14, 2026 - 16:50 cvss changed CVSS 8.3

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.

v1 Mar 12, 2026 - 21:55 CVSS 6.5

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

Vendor (vulncheck) PRIMARY 8.3 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 8.2 HIGH

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
Analysis Updated
Jul 14, 2026 - 16:52 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 14, 2026 - 16:50 vuln.today
v2 - CVSS changed
Severity Changed
Jul 14, 2026 - 16:22 NVD
MEDIUM HIGH
CVSS changed
Jul 14, 2026 - 16:22 NVD
6.5 (MEDIUM) 8.3 (HIGH)
CVE Published
Feb 25, 2026 - 18:23 nvd
MEDIUM 6.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 80% exploitable
Prevalence
Medium
widely used open-source SIP/VoIP server, but affected module is optional
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy