CVE-2026-71276: CWE-89 in absmach magistrala
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.
AI Analysis
Technical Summary
Magistrala's message-readers API improperly handles input from HTTP query strings by inserting it directly into SQL queries without validation or sanitization. This occurs in the PostgreSQL reader (readers/postgres/messages.go) and TimescaleDB reader (readers/timescale/messages.go) via fmt.Sprintf, enabling SQL injection (CWE-89). The vulnerability requires authentication and affects the ability to query channel messages, potentially allowing an attacker to execute arbitrary SQL commands with high confidentiality impact but limited integrity and no availability impact.
Potential Impact
An authenticated user querying channel messages can exploit this vulnerability to execute arbitrary SQL commands on the backend database. This can lead to unauthorized disclosure of sensitive data (high confidentiality impact). The integrity impact is low and availability impact is none according to the CVSS vector. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to authenticated users and monitor for suspicious query patterns. Avoid using unvalidated input directly in SQL queries and consider implementing parameterized queries or prepared statements to prevent SQL injection.
CVE-2026-71276: CWE-89 in absmach magistrala
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.
CVSS v3.1
Score 7.1high
Affected software
absmach
magistrala
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Magistrala's message-readers API improperly handles input from HTTP query strings by inserting it directly into SQL queries without validation or sanitization. This occurs in the PostgreSQL reader (readers/postgres/messages.go) and TimescaleDB reader (readers/timescale/messages.go) via fmt.Sprintf, enabling SQL injection (CWE-89). The vulnerability requires authentication and affects the ability to query channel messages, potentially allowing an attacker to execute arbitrary SQL commands with high confidentiality impact but limited integrity and no availability impact.
Potential Impact
An authenticated user querying channel messages can exploit this vulnerability to execute arbitrary SQL commands on the backend database. This can lead to unauthorized disclosure of sensitive data (high confidentiality impact). The integrity impact is low and availability impact is none according to the CVSS vector. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to authenticated users and monitor for suspicious query patterns. Avoid using unvalidated input directly in SQL queries and consider implementing parameterized queries or prepared statements to prevent SQL injection.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.967Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7336e5bf8831d539ed925c
Added to database: 08/05/2026, 13:13:09 UTC
Last enriched: 08/12/2026, 14:33:43 UTC
Last updated: 09/17/2026, 22:01:38 UTC
Views: 30
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.