CVE-2026-40906
published critical CVSS 3.1 · 10.0Electric: SQL Injection via ORDER BY Parameter in Shape API
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| electric-sql | — | electric>= 1.1.12, < 1.5.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processorRed Hat Developer Hub | Unaffected | Not required | redhat-SADP |
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 flaw was found in ElectricSQL, a Postgres sync engine. An authenticated user could exploit an error-based SQL injection vulnerability in the `/v1/shape` API's `order_by` parameter. This flaw allows an attacker to read, write, and destroy the full contents of the underlying PostgreSQL database. Such an attack could lead to severe data compromise and potential data loss.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| electric-sql | electric | >= 1.1.12, < 1.5.0 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Developer Hub | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
5- https://access.redhat.com/security/cve/CVE-2026-40906
- RHBZ#2460291 https://bugzilla.redhat.com/show_bug.cgi?id=2460291
- https://github.com/electric-sql/electric/pull/4081
- https://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906.json
Provider assertions
3GitHub_M · cna
Electric: SQL Injection via ORDER BY Parameter in Shape API
redhat-SADP · adp
electric-sql: ElectricSQL: Critical data compromise and loss via SQL injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a0a2f1a020605b70a8f1180e6bc1b6b2cbc7f20811a3545e87efea5e209d4d1d
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record