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.
Affected products
electric: sync-service
References6
- github.com/electric-sql/electric/security/advisories/GHSA-h5rg-… ExploitVendor Advisory
- github.com/electric-sql/electric/security/advisories/GHSA-h5rg-… ExploitVendor Advisory
- github.com/electric-sql/electric/pull/4081 ExploitIssue Tracking
- access.redhat.com/security/cve/CVE-2026-40906
- bugzilla.redhat.com/show_bug.cgi?id=2460291
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906…
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 0% percentile: 41 · as of 13 November 2026
- CWE
- CWE-89
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.