top of page
perceptive_background_267k.jpg

Magistrala (formerly Mainflux)'s message-readers API reads a `format` value from the HTTP query string (readers/api/http/transport.go) with no validation and in…

Published:

4 augustus 2026 om 22:00:00

Alert date:

5 augustus 2026 om 14:10:56

Source:

nvd.nist.gov

Click to open the original link from this advisory

Web Technologies, Mobile & IoT, Database & Storage

CVE-2026-71276 describes a SQL injection vulnerability in Magistrala (formerly Mainflux), an open-source IoT messaging platform. The message-readers API reads a 'format' parameter from the HTTP query string without any validation. This value is then directly interpolated into raw SQL queries using fmt.Sprintf() in both the PostgreSQL and TimescaleDB reader implementations. The vulnerable pattern allows an authenticated user to manipulate the SQL query by crafting a malicious 'format' value. Both readers/postgres/messages.go and readers/timescale/messages.go are affected with the same insecure pattern. Any authenticated user with access to the channel messages query endpoint can exploit this vulnerability. The issue stems from a lack of input sanitization and the use of string formatting instead of parameterized queries. This represents a classic and critical SQL injection flaw in a widely used IoT platform.

Technical details

Mitigation steps:

Affected products:

Magistrala
Mainflux

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Deze website toont informatie afkomstig van externe bronnen; Perceptive aanvaardt geen verantwoordelijkheid voor de juistheid, volledigheid of actualiteit van deze informatie.

bottom of page