Vulnerability · Published Aug 5, 2026 · Assigned by TuranSec
CVE-2026-71276Magistrala (formerly Mainflux) IoT Platform SQL Injection via format Query Parameter
High 7.1
In plain English
A high-severity SQL injection in magistrala from absmach. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities).
Official description
Magistrala (formerly Mainflux)'s message-readers API reads a value from the HTTP query string (readers/api/http/transport.go) with no validation and interpolates it directly into raw SQL queries via fmt.Sprintf in both the PostgreSQL reader (readers/postgres/messages.go: ) and the TimescaleDB reader (readers/timescale/messages.go, same pattern), enabling SQL injection by any authenticated user able to query channel messages.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| absmach | magistrala | 0 – through * |
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
References
- https://github.com/absmach/magistrala third-party-advisory
- https://github.com/absmach/magistrala/blob/main/readers/postgres/messages.go third-party-advisory