{"id":"CVE-2026-40906","state":"PUBLISHED","title":"Electric: SQL Injection via ORDER BY Parameter in Shape API","description":"Electric is a Postgres sync engine. From 1.1.12 to before 1.5.0, the order_by parameter in the ElectricSQL /v1/shape API is vulnerable to error-based SQL injection, allowing any authenticated user to read, write, and destroy the full contents of the underlying PostgreSQL database through crafted ORDER BY expressions. This vulnerability is fixed in 1.5.0.","publishedAt":"2026-04-21T20:05:51.819Z","updatedAt":"2026-07-15T01:00:25.498Z","severity":{"score":10,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["electric-sql electric"],"affected":[{"vendor":"electric-sql","product":"electric","versions":[{"version":">= 1.1.12, < 1.5.0","status":"affected"}]}],"references":["https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj","https://github.com/electric-sql/electric/pull/4081","https://access.redhat.com/security/cve/CVE-2026-40906","https://bugzilla.redhat.com/show_bug.cgi?id=2460291","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906.json"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40906.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40906","state":"PUBLISHED","datePublished":"2026-04-21T20:05:51.819Z","dateUpdated":"2026-07-15T01:00:25.498Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-15T16:37:22.767Z"},"containers":{"cna":{"title":"Electric: SQL Injection via ORDER BY Parameter in Shape API","descriptions":[{"lang":"en","value":"Electric is a Postgres sync engine. From 1.1.12 to before 1.5.0, the order_by parameter in the ElectricSQL /v1/shape API is vulnerable to error-based SQL injection, allowing any authenticated user to read, write, and destroy the full contents of the underlying PostgreSQL database through crafted ORDER BY expressions. This vulnerability is fixed in 1.5.0."}],"affected":[{"vendor":"electric-sql","product":"electric","versions":[{"version":">= 1.1.12, < 1.5.0","status":"affected"}]}],"references":[{"url":"https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj","name":"https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/electric-sql/electric/pull/4081","name":"https://github.com/electric-sql/electric/pull/4081","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-21T20:05:51.819Z"},"source":{"advisory":"GHSA-h5rg-pxx7-r2hj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-22T13:46:48.727407Z","id":"CVE-2026-40906","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-04-22T13:47:15.546Z"}},{"title":"electric-sql: ElectricSQL: Critical data compromise and loss via SQL injection","descriptions":[{"lang":"en","value":"A flaw was found in ElectricSQL, a Postgres sync engine. An authenticated user could exploit an error-based SQL injection vulnerability in the `/v1/shape` API's `order_by` parameter. This flaw allows an attacker to read, write, and destroy the full contents of the underlying PostgreSQL database. Such an attack could lead to severe data compromise and potential data loss."}],"affected":[{"vendor":"Red Hat","product":"Red Hat Developer Hub","packageName":"rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:rhdh:1"]}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-40906","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460291","name":"RHBZ#2460291","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906.json","tags":["x_sadp-csaf-vex"]}],"metrics":[{"other":{"content":{"namespace":"https://access.redhat.com/security/updates/classification/","value":"Important"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat-SADP","orgId":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c","dateUpdated":"2026-07-15T01:00:25.498Z"},"datePublic":"2026-04-21T20:05:51.819Z","timeline":[{"lang":"en","time":"2026-04-21T21:02:12.992Z","value":"Reported to Red Hat."},{"lang":"en","time":"2026-04-21T20:05:51.819Z","value":"Made public."}],"x_adpType":"supplier","x_generator":{"engine":"sadp-cli 1.0.0"}}]}}}