Electric: SQL Injection via ORDER BY Parameter in Shape API
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ElectricSQL | electric | 1.1.12 to before 1.5.0 | 1.5.0 | Patch available | CNA |
- electric VendorElectricSQL Affected 1.1.12 to before 1.5.0 Fixed in 1.5.0 Patch available CNA
Remediation
- Fix · CNA electric (electric-sql) Fixed in 1.5.0
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Developer Hub 1
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40906
- 2026-10-27 Affected versions changed · Red Hat
References
More ElectricSQL vulnerabilities
- TI-2026-46520 Electric Postgres Sync Excluded-Column Value Inference via Subset Where Clauses CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-40906 · CVE Program
- CVE-2026-40906 · NVD
- FIRST EPSS
- CVE-2026-40906 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences