CVE-2026-71276: CWE-89 in absmach magistrala
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 interpolates it directly into raw SQL queries via fmt.Sprintf() in both the PostgreSQL reader (readers/postgres/messages.go: `fmt.Sprintf("SELECT * FROM %s WHERE %s ...", format, cond)`) and the TimescaleDB reader (readers/timescale/messages.go, same pattern), enabling SQL injection by any authenticated user able to query channel messages.
AI Analysis
Technical Summary
CVE-2026-71276 is a SQL injection vulnerability (CWE-89) in Magistrala's message-readers API. The 'format' parameter from the HTTP query string is used unsafely in raw SQL queries constructed via fmt.Sprintf() in both PostgreSQL and TimescaleDB readers, allowing authenticated users to inject SQL commands. This occurs in readers/api/http/transport.go and readers/postgres/messages.go and readers/timescale/messages.go. The vulnerability enables unauthorized data access or manipulation with high confidentiality impact but limited integrity and availability impact. No known exploits are reported in the wild.
Potential Impact
An authenticated user can exploit this vulnerability to execute arbitrary SQL commands on the backend database, potentially leading to unauthorized disclosure of sensitive data (high confidentiality impact). The integrity impact is low as the vulnerability primarily allows reading data, and availability impact is none. This could compromise the confidentiality of channel messages stored in PostgreSQL or TimescaleDB databases used by Magistrala.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid exposing the vulnerable API to untrusted users or restrict access to trusted authenticated users only. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-71276: CWE-89 in absmach magistrala
Description
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 interpolates it directly into raw SQL queries via fmt.Sprintf() in both the PostgreSQL reader (readers/postgres/messages.go: `fmt.Sprintf("SELECT * FROM %s WHERE %s ...", format, cond)`) and the TimescaleDB reader (readers/timescale/messages.go, same pattern), enabling SQL injection by any authenticated user able to query channel messages.
CVSS v3.1
Score 7.1high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-71276 is a SQL injection vulnerability (CWE-89) in Magistrala's message-readers API. The 'format' parameter from the HTTP query string is used unsafely in raw SQL queries constructed via fmt.Sprintf() in both PostgreSQL and TimescaleDB readers, allowing authenticated users to inject SQL commands. This occurs in readers/api/http/transport.go and readers/postgres/messages.go and readers/timescale/messages.go. The vulnerability enables unauthorized data access or manipulation with high confidentiality impact but limited integrity and availability impact. No known exploits are reported in the wild.
Potential Impact
An authenticated user can exploit this vulnerability to execute arbitrary SQL commands on the backend database, potentially leading to unauthorized disclosure of sensitive data (high confidentiality impact). The integrity impact is low as the vulnerability primarily allows reading data, and availability impact is none. This could compromise the confidentiality of channel messages stored in PostgreSQL or TimescaleDB databases used by Magistrala.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid exposing the vulnerable API to untrusted users or restrict access to trusted authenticated users only. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.967Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7336e5bf8831d539ed925c
Added to database: 08/05/2026, 13:13:09 UTC
Last enriched: 08/05/2026, 13:30:11 UTC
Last updated: 08/05/2026, 18:47:02 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.