What is CVE-2026-135164?
CVE-2026-135164 is a high-severity SQL injection vulnerability in formancehq ledger, published on 23 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Formance Ledger 2.2.0-beta.3 before 2.4.18 contains an SQL injection vulnerability that allows remote API callers to execute SQL by supplying unvalidated account expand values. Attackers can inject comment-separated SQL through the expand query parameter or base64 pagination cursor to run queries with the ledger database role's privileges.
Weakness: CWE-89
How severe is CVE-2026-135164?
CVE-2026-135164 scores 8.7 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- None
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Which versions are affected by CVE-2026-135164?
1 open source package ship an affected version, including github.com/formancehq/ledger.
An affected version is exposed as installed. No special setting or call is needed.
| Package | Affected | Fixed in |
|---|---|---|
github.com/formancehq/ledger Gopkg:golang/github.com/formancehq/ledger | From 2.2.0-beta.3 | 2.4.18 |
How do I fix CVE-2026-135164?
Upgrade github.com/formancehq/ledger to 2.4.18 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-135164 being exploited?
There is no known exploitation of CVE-2026-135164 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-7pcx-wr6v-4qx5.