CVE-2026-40906 Details
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.
A critical error-based SQL injection vulnerability has been identified in ElectricSQL versions 1.1.12 prior to 1.5.0. The issue resides in the 'order_by' parameter of the '/v1/shape' API, where improper validation allows authenticated users to inject malicious ORDER BY expressions. This exploitation could lead to unauthorized access, modification, and deletion of data in the underlying PostgreSQL database. The vulnerability also poses a risk of denial-of-service by injecting commands that disrupt database operations.
Users self-hosting ElectricSQL should upgrade to version 1.5.0 or later. Electric Cloud customers have already been patched to version 1.5.0.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-40906 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2460291 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906.json | redhat-SADP | |
| https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj | CISA-ADP | ExploitVendor Advisory |
| https://github.com/electric-sql/electric/pull/4081 | [email protected] | ExploitIssue Tracking |
| https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | redhat-SADP |
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| electric sync-service | >= 1.1.12, < 1.5.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 13, 2026 | Initial Analysis | [email protected] |
| Apr 22, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | New CVE Received | [email protected] |