{"id":"CVE-2026-82028","revision":"18c8a76fca1a41078f21c02263018bd6","records":[{"revision":"18c8a76fca1a41078f21c02263018bd6","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-82028","aliases":[],"title":"Magistrala < 1.0.0 SQL Injection via format Parameter in Reader API","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.","state":0,"publishedAt":"2026-09-14T19:56:59.881+00:00","modifiedAt":"2026-09-26T13:29:55.933+00:00","affected":[{"ecosystem":"Vendor product","name":"magistrala","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"defaultStatus\": \"unaffected\",\n                    \"vendor\": \"absmach\",\n                    \"product\": \"magistrala\",\n                    \"packageURL\": \"pkg:github/absmach/magistrala\",\n                    \"repo\": \"https://github.com/absmach/magistrala\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"1.0.0\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":8.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/absmach/magistrala/releases/tag/v1.0.0","https://github.com/absmach/magistrala/pull/3581","https://github.com/absmach/magistrala/pull/3581/changes/aac9461aa561c3de7aa9a0dc814ac84c602e0cf9","https://www.vulncheck.com/advisories/magistrala-sql-injection-via-format-parameter-in-reader-api"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-82028","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-82028","identifiers":["CVE-2026-82028"]},"retained":false,"historicalAffected":[]}],"coverage":[]}