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.
References
Configurations
No configuration.
History
No history.
Information
Published : 2026-08-05 13:24
Updated : 2026-08-26 17:13
NVD link : CVE-2026-71276
Mitre link : CVE-2026-71276
CVE.ORG link : CVE-2026-71276
JSON object : View
Products Affected
No product.
CWE
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
