CVE-2026-40906

Electric: SQL Injection via ORDER BY Parameter in Shape API

HIGH
8.8
CVSS Score
Published: April 21, 2026 at 08:05 PM UTC
Updated: July 15, 2026 at 02:21 AM UTC
2 products affected across 2 vendorsSync ServiceElectric

Using electric by electric-sql?

Get instant alerts when new vulnerabilities affect electric - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

1.1.12 ≤ v < 1.5.0
Affected range stops below 1.5.0, so it looks safe — our inference, not a vendor statement
v < 1.5.0
Affected range stops below 1.5.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

x_refsource_CONFIRMExploitVendor Advisory
Source: cverecord
https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj
x_refsource_MISCExploitIssue Tracking
Source: cverecord
https://github.com/electric-sql/electric/pull/4081
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/security/cve/CVE-2026-40906
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://bugzilla.redhat.com/show_bug.cgi?id=2460291

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.8HIGHredhat-SADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-89

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card