CVE-2026-40906
NVDCVSS scored by security-advisories@github.com
Vulnerability 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.
CVSS v3.1 Base Metrics — Score 9.9 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Electric Sync-service >= 1.1.12 and < 1.5.0
- electric-sql electric >= 1.1.12, < 1.5.0
- Electric Sync-service 1.5.0
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run Electric Sync-service and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Apr 21, 2026Published
- Nov 11, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Electric Sync-service CVEsYou are reading CVE-2026-40906. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Exploithttps://github.com/electric-sql/electric/pull/4081
- Exploithttps://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj
- Vendor Advisoryhttps://access.redhat.com/security/cve/CVE-2026-40906
- Issue Trackinghttps://bugzilla.redhat.com/show_bug.cgi?id=2460291
- Exploithttps://github.com/electric-sql/electric/security/advisories/GHSA-h5rg-pxx7-r2hj
- Referencehttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40906.json
Data last checked: Dec 5, 2026 08:11 UTC