{"id":"CVE-2026-82028","state":"PUBLISHED","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.","publishedAt":"2026-09-14T19:56:59.881Z","updatedAt":"2026-09-26T13:29:55.933Z","severity":{"score":8.7,"label":"High","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["absmach magistrala"],"affected":[{"vendor":"absmach","product":"magistrala","packageURL":"pkg:github/absmach/magistrala","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.0.0","versionType":"semver"}],"repo":"https://github.com/absmach/magistrala"}],"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"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/82xxx/CVE-2026-82028.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-82028","state":"PUBLISHED","datePublished":"2026-09-14T19:56:59.881Z","dateUpdated":"2026-09-26T13:29:55.933Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-08-27T21:39:20.459Z"},"containers":{"cna":{"title":"Magistrala < 1.0.0 SQL Injection via format Parameter in Reader API","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"absmach","product":"magistrala","packageURL":"pkg:github/absmach/magistrala","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.0.0","versionType":"semver"}],"repo":"https://github.com/absmach/magistrala"}],"references":[{"url":"https://github.com/absmach/magistrala/releases/tag/v1.0.0","name":"Magistrala v1.0.0 Release Notes","tags":["release-notes"]},{"url":"https://github.com/absmach/magistrala/pull/3581","name":"Pull Request","tags":["issue-tracking","patch"]},{"url":"https://github.com/absmach/magistrala/pull/3581/changes/aac9461aa561c3de7aa9a0dc814ac84c602e0cf9","name":"Patch Commit","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/magistrala-sql-injection-via-format-parameter-in-reader-api","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.7,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","version":"3.1","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-26T13:29:55.933Z"},"tags":["x_open-source"],"datePublic":"2026-08-13T00:00:00.000Z","credits":[{"lang":"en","value":"Haseeb(^hxm)","type":"finder"},{"lang":"en","value":"VulnCheck","type":"coordinator"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-16T16:11:24.801669Z","id":"CVE-2026-82028","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-16T16:11:39.543Z"}}]}}}