SQL Injection in Electric Sync-Service
CVE-2026-40906
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.005, 40.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Electric Sync-Service
- Electric-Sql Electric — versions >= 1.1.12, < 1.5.0
Weakness classification (CWE)
References
- github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj (Exploit, Vendor Advisory)
- github.com/electric-sql/electric/pull/4081 (Exploit, Issue Tracking)
- access.redhat.com/security/cve/CVE-2026-40906
- bugzilla.redhat.com/show_bug.cgi
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906.json