Magistrala < 1.0.0 SQL Injection via format Parameter in Reader API
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-82028
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 09:55 UTC · Revision 1
Source evidence
Magistrala < 1.0.0 SQL Injection via format Parameter in Reader API
core-osv · Original sourcePublished 14 Sept 2026, 19:56 UTC
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.
osv:CVE-2026-82028
Complete source record
{
"id": "f252294eea9f9783d0e532f760a4412117065818b0a48a409c7e1ea3e88afc41",
"url": "https://osv.dev/vulnerability/CVE-2026-82028",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Magistrala < 1.0.0 SQL Injection via format Parameter in Reader API",
"summary": "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.",
"evidence": "osv:CVE-2026-82028",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-82028",
"aliases": [
"CVE-2026-82028"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/absmach/magistrala",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c446d629455c321a6b4d9e39981a0158659f3da8"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "c446d629455c321a6b4d9e39981a0158659f3da8"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.0.0"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.0"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v0.51.0",
"v0.50.0",
"v0.40.0",
"v0.30.0",
"v0.20.0",
"v0.19.1",
"v0.19.0",
"v0.18.5",
"v0.18.4",
"v0.18.3",
"v0.18.2",
"v0.18.1",
"v0.18.0",
"v0.17.0",
"v0.17.0-rc.2",
"v0.17.0-rc.1",
"v0.16.0",
"v0.15.1",
"v0.15.0",
"v0.14.0",
"0.13.0",
"0.12.1",
"0.12.0",
"v0.11.0",
"0.11.0",
"0.10.0",
"0.9.0",
"0.8.0",
"0.7.0",
"0.6.1",
"0.6.0",
"0.5.1",
"0.5.0",
"0.4.0",
"0.3.0",
"0.2.3",
"0.2.2",
"0.2.1",
"0.2.0",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-82028.json"
}
}
],
"modified": "2026-10-28T02:30:27.797353529Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82028.json",
"https://github.com/absmach/magistrala/releases/tag/v1.0.0",
"https://nvd.nist.gov/vuln/detail/CVE-2026-82028",
"https://www.vulncheck.com/advisories/magistrala-sql-injection-via-format-parameter-in-reader-api",
"https://github.com/absmach/magistrala/pull/3581",
"https://github.com/absmach/magistrala/pull/3581/changes/aac9461aa561c3de7aa9a0dc814ac84c602e0cf9",
"https://github.com/absmach/magistrala"
],
"provider_metadata": {
"cwe_ids": [
"CWE-89"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82028.json"
}
},
"related_cves": [
{
"value": "CVE-2026-82028",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494352,
"published_at": "2026-09-14T19:56:59.881+00:00"
}