CVE-2026-40906 Electric: SQL Injection via ORDER BY Parameter in Shape API
HighCVSS 8.8
EPSS 0.47%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
3 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| electric sync-service | >= 1.1.12, < 1.5.0 | 1.5.0 | Fixed |
| electric-sql electric | = >= 1.1.12, < 1.5.0 | No fix listed | Versions listed |
| redhat rhdh | = 1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| electric-sql electric | = >= 1.1.12, < 1.5.0 | No fix listed |
| redhat rhdh | = 1 | No fix listed |
| electric sync-service | >= 1.1.12, < 1.5.0 | 1.5.0 |
References
- https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj exploit vendor-advisory
- https://github.com/electric-sql/electric/pull/4081 exploit issue-tracking
- Red Hat CVE page vdb-entry vendor-advisory
- RHBZ#2460291 issue-tracking
- security.access.redhat.com
- www.cve.org
- nvd.nist.gov