Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege ChirpStack account
-
DeliveryAuthenticate to ChirpStack API
-
ExploitCraft tag key with SQL injection payload
-
ExecutionSubmit device-list query to SQLite-backed endpoint
-
PersistInjected SQL executes in SQLite engine
-
ImpactExfiltrate arbitrary database contents
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 | Two specific conditions are required simultaneously: (1) ChirpStack must be deployed with the SQLite backend package ( |
| Impact | The NVD CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) accurately reflects a network-reachable, low-complexity SQL injection requiring only a low-privilege authenticated account, with confidentiality-only impact scoped to ChirpStack's own database. The authentication prerequisite (PR:L) meaningfully narrows the realistic threat surface compared to unauthenticated SQLi. No EPSS score was provided in the intelligence data, so probabilistic exploitation likelihood cannot be quantified. The vulnerability has not been listed in CISA KEV and no POC code has been identified, indicating no confirmed active exploitation at time of analysis. The most significant risk limiter is backend scope: organizations using PostgreSQL - a common production choice - are entirely unaffected. The realistic threat model centers on insider threats or compromised low-privilege accounts in SQLite-backed deployments, which are more typical of smaller or edge-deployed ChirpStack instances. There is no integrity or availability impact, and scope is unchanged, keeping the blast radius confined to database read access. |
| Exploit ScenarioDerived | An attacker with a low-privilege ChirpStack account (or any account holding device-list access) submits a device-listing API request with a crafted tag key containing SQL injection syntax, such as a UNION-based payload to append a secondary SELECT query. The injected SQL executes within the SQLite engine, returning arbitrary rows from the ChirpStack database - potentially including device session keys, application identifiers, tenant data, or user records. No public exploit code has been identified, but the injection point is straightforward to discover from the open-source codebase and requires no advanced technique beyond classic SQLi. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
SQL injection in ChirpStack's SQLite-backend device tag filtering exposes the full database contents to any authenticated user with device-list access. The flaw lives in chirpstack/src/storage/device.rs within both get_count() and list(), where the tag KEY is concatenated into raw SQL via Rust's format!() macro while only the tag VALUE receives safe parameterization through Diesel's .bind(). Only deployments using the chirpstack-sqlite package are affected - the PostgreSQL backend uses Diesel's native JSONB containment operator and is architecturally immune. No public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
No vendor-released patched version has been identified at time of analysis - monitor the upstream repository at https://github.com/chirpstack/chirpstack and the specific file https://github.com/chirpstack/chirpstack/blob/master/chirpstack/src/storage/device.rs for a code fix. The most effective immediate remediation is to migrate from the chirpstack-sqlite backend to the PostgreSQL backend, which is architecturally immune to this vulnerability; this is a configuration-level change but may require data migration effort. If migration is not immediately feasible, restrict device-list access permissions to only trusted, vetted users, since exploitation requires an authenticated account with that specific permission; reducing the pool of eligible attackers limits exposure but does not eliminate the vulnerability. Audit existing ChirpStack SQLite database contents and API access logs for anomalous query patterns that may indicate prior exploitation. The correct code-level fix requires replacing the format!() key interpolation with a Diesel parameterized binding for the key component.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ChirpStack is an open-source LoRaWAN Network Server stack commonly deployed in IoT environments. The vulnerable code uses Diesel ORM's dsl::sql() escape hatch to construct a raw SQL fragment for SQLite JSONB-style key lookup: dsl::sql::<Bool>(&format!("device.tags->>'{}' =", k)).bind::<Text, _>(v). Because SQLite does not support PostgreSQL's native @> JSONB containment operator, the developers adopted a raw-string workaround - but failed to parameterize the key component k, leaving it open to injection. The value v is safely bound via a Diesel parameter placeholder. CWE-89 (SQL Injection) applies precisely: user-controlled input reaches a SQL interpreter without sanitization or parameterization. The CPE string cpe:2.3:a:chirpstack:chirpstack:*:*:*:*:*:*:*:* covers all versions with no lower or upper bound specified.
Know when Chirpstack gets its next vulnerability
- 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
PR:L for required device-list auth; C:H for arbitrary DB read via SELECT-path injection; I:N as tag-filter queries expose no write path.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
ChirpStack's SQLite-backend device tag filtering (chirpstack/src/storage/device.rs, in both get_count() and list()) interpolates the user-supplied tag KEY directly into a raw SQL fragment via Rust's format!() macro (dsl::sql::<Bool>(&format!("device.tags->>'{}' =", k)).bind::<Text, _>(v)), while only the tag VALUE is safely parameter-bound via Diesel's .bind(). An authenticated user with device-list access can inject SQL via a crafted tag key when the SQLite backend (chirpstack-sqlite package) is in use; the PostgreSQL backend is unaffected as it uses Diesel's native JSONB containment operator instead of raw SQL string formatting.
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.
More in Chirpstack
View allAn inaccurate frame deduplication process in ChirpStack Network Server 3.9.0 allows a malicious gateway to perform uplin
The Kerlink firewall in ChirpStack chirpstack-mqtt-forwarder before 4.2.1 and chirpstack-gateway-bridge before 4.0.11 wr
EUVD-2026-53367
GHSA-9g5q-g36m-7qqq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB