# CVE-2026-40906: Electric: SQL Injection via ORDER BY Parameter in Shape API

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-04-21T20:05:51.819Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- electric-sql electric: >= 1.1.12, < 1.5.0
- rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor: no versions given
- electric sync-service: from 1.1.12 before 1.5.0

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## 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)
- <https://access.redhat.com/security/cve/CVE-2026-40906> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2460291> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906.json>

## Sources

- CVE List: [CVE-2026-40906](https://www.cve.org/CVERecord?id=CVE-2026-40906), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2026-40906](https://nvd.nist.gov/vuln/detail/CVE-2026-40906), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-40906 · Whole record: https://cve.day/CVE-2026-40906.json · Rebuilt by cve.day 2026-11-25T22:59:19.189Z
