CVE-2026-82028 Details
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.
A SQL injection vulnerability has been identified in Magistrala versions prior to 1.0.0, specifically within the timescale-reader and postgres-reader HTTP API services. This vulnerability allows authenticated attackers to inject arbitrary SQL by manipulating the format query parameter, which is directly interpolated into the FROM clause without proper parameterization or identifier quoting. Attackers with self-registered accounts can exploit this to perform 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. All injected SQL executes with superuser privileges, exploiting the default PostgreSQL role configuration.
Users are advised to update to Magistrala version 1.0.0 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 14, 2026CISA-ADP
Assessed Sep 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/absmach/magistrala/pull/3581 | [email protected] | Issue TrackingVendor |
| https://github.com/absmach/magistrala/pull/3581/changes/aac9461aa561c3de7aa9a0dc814ac84c602e0cf9 | [email protected] | Source CodeVendor |
| https://github.com/absmach/magistrala/releases/tag/v1.0.0 | [email protected] | Release NotesVendor |
| https://www.vulncheck.com/advisories/magistrala-sql-injection-via-format-parameter-in-reader-api | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| absmach Magistrala | < 1.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 16, 2026 | CVE Modified | CISA-ADP |
| Sep 14, 2026 | New CVE Received | [email protected] |
Volerion