Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE-2026-25554
Summary
OpenSIPS versions 3.1.x through 3.4.16 and 3.5.x through 3.6.3 containing the auth_jwt module 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.
- HIGH
- NETWORK
- LOW
- UNCHANGED
- NONE
- NONE
- HIGH
- NONE
CWE-89 - SQL Injection
Structured Query Language (SQL) injection attacks are one of the most common types of vulnerabilities. They exploit weaknesses in vulnerable applications to gain unauthorized access to backend databases. This often occurs when an attacker enters unexpected SQL syntax in an input field. The resulting SQL statement behaves in the background in an unintended manner, which allows the possibility of unauthorized data retrieval, data modification, execution of database administration operations, and execution of commands on the operating system.
References
Advisory Timeline
- Published