CVE-2026-82028
nicheAuthenticated SQL Injection to Superuser RCE in Magistrala Readers (pre-1.0.0)
Magistrala before 1.0.0 contains a SQL injection flaw in the timescale-reader and postgres-reader HTTP API services: the user-supplied 'format' query parameter is interpolated directly into the FROM clause of a query without parameterization or identifier quoting. Any authenticated attacker — including one holding only a self-registered low-privilege account — can substitute arbitrary subqueries, enabling cross-tenant database reads, extraction of pg_shadow password hashes, arbitrary file read/write, and ultimately arbitrary code execution as the postgres OS user by loading attacker-supplied shared objects. The impact is amplified because the default PostgreSQL role configuration executes all injected SQL at superuser privilege. Self-hosted deployments of Magistrala prior to 1.0.0 with the reader APIs reachable to tenant users are affected. No public proof of concept exists, the flaw is not in the CISA KEV catalog, and no exploitation has been observed.
What to do: Upgrade Magistrala to version 1.0.0 or later, which remediates the injection in the reader services. Until patched, restrict network access to the timescale-reader and postgres-reader HTTP endpoints to trusted clients, disable open self-registration, and configure the reader services to use a non-superuser, least-privilege PostgreSQL role. Review database and application logs for anomalous 'format' parameter values, unexpected roles or shared objects, and rotate database credentials if compromise is suspected.
| Abstract Machines (absmach) Magistrala (timescale-reader and postgres-reader HTTP API services) | before 1.0.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- Weakness
- CWE-89
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.