CVE-2026-82028
Received Received - Intake

SQL Injection in Magistrala Timescale-Reader and Postgres-Reader Services

Vulnerability report for CVE-2026-82028, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-14

Last updated on: 2026-09-14

Assigner: VulnCheck

Description

Magistrala before 1.0.0 contains a SQL injection vulnerability in the timescale-reader and postgres-reader HTTP API services that allows authenticated attackers to inject arbitrary SQL by supplying a malicious format query parameter that is interpolated directly into the FROM clause without parameterization or identifier quoting. Attackers with a self-registered account can substitute arbitrary subqueries to achieve cross-tenant database reads, extract pg_shadow password hashes, read and write arbitrary files, and execute arbitrary code as the postgres OS user by loading attacker-supplied shared objects, with all injected SQL executing at superuser privilege due to the default PostgreSQL role configuration.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-14
Last Modified
2026-09-14
Generated
2026-09-15
AI Q&A
2026-09-15
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
magistrala magistrala to 1.0.0 (exc)
absmach magistrala to 1.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a SQL injection vulnerability in Magistrala versions before 1.0.0. It affects the timescale-reader and postgres-reader HTTP API services. Attackers with a self-registered account can inject malicious SQL by manipulating the 'format' query parameter, which is directly inserted into the FROM clause without proper sanitization. This allows cross-tenant database access, data extraction, file operations, and code execution as the PostgreSQL OS user with superuser privileges.

Detection Guidance

To detect this vulnerability, inspect HTTP requests to Magistrala's timescale-reader and postgres-reader services for the 'format' parameter. Check if the parameter is directly interpolated into SQL queries without validation or escaping. Look for unusual SQL patterns or errors in logs from these services.

Impact Analysis

If you use Magistrala versions before 1.0.0, an attacker could exploit this to read sensitive data like password hashes, modify or delete database records, access files on the server, or execute arbitrary code with full database privileges. This could lead to data breaches, system compromise, or unauthorized access to other tenants' data in a multi-tenant environment.

Compliance Impact

This vulnerability likely violates compliance requirements for GDPR and HIPAA due to unauthorized data access and potential data breaches. GDPR requires protection of personal data and breach notification, while HIPAA mandates safeguards for protected health information. Exploitation could result in unauthorized access to sensitive data, leading to regulatory penalties and loss of trust.

Mitigation Strategies

Upgrade Magistrala to version 1.0.0 or later to address the vulnerability. If upgrading is not immediately possible, restrict access to the timescale-reader and postgres-reader services to trusted users only. Monitor logs for suspicious SQL injection attempts and disable self-registration if not required.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-82028. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart