Skip to main content
EPSS 0.2%top 91%

CVE-2026-71276: CWE-89 in absmach magistrala

0
High
Published: 08/05/2026 (08/05/2026, 12:26:22 UTC)
Source: CVE Database V5
Vendor/Project: absmach
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Affected software

absmach

magistrala

Affected versions
>=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 14:33:43 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses