Skip to main content

ChirpStack CVE-2026-71282

| EUVDEUVD-2026-53367 MEDIUM
SQL Injection (CWE-89)
2026-08-05 TuranSec GHSA-9g5q-g36m-7qqq
6.5
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege ChirpStack account
  2. Delivery
    Authenticate to ChirpStack API
  3. Exploit
    Craft tag key with SQL injection payload
  4. Execution
    Submit device-list query to SQLite-backed endpoint
  5. Persist
    Injected SQL executes in SQLite engine
  6. Impact
    Exfiltrate 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 (chirpstack-sqlite) - PostgreSQL deployments are categorically unaffected regardless of configuration; (2) the attacker must hold an authenticated ChirpStack session with device-list access permissions (CVSS PR:L). The attack is then network-accessible (CVSS AV:N) with low complexity (CVSS AC:L), meaning no race condition, timing window, or special environmental state is needed beyond the above. Exploitation is limited by: the authentication barrier (no unauthenticated path exists per CVSS PR:L), the SQLite-only backend scope (the single most important architectural limiter), and unchanged scope (CVSS S:U, confining impact to ChirpStack's own database with no lateral movement to adjacent systems implied by the vector).

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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

chirpstack 0 ≤4.19.0-test.5

Affected Packages

euvd chirpstack no fix

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

Vendor (TuranSec) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

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.

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

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche LoRaWAN IoT network server, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

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