CVE Catalog

CVE-2026-71276

HighCVSS 7.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

9th percentile - higher than 9% of all known CVEs

Summary

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.

Risk Assessment

An authenticated user can execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, or deletion in the database.

Recommendation

Update Magistrala to a version that uses parameterized queries or validates input, and restrict access to the readers API to trusted users only.

Other vulnerabilities in Magistrala

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS