CVE-2026-135164 Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter

Published Updated

Remote API callers can inject SQL via account expand values in Formance Ledger, running queries with the ledger database role's privileges.

CVSS score

High

8.7/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
Proof of concept
1 on GitHub, unverified
Fix
Available
2.4.18
Attack path
Over the internet
Any signed-in user, no user action

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.

PackageAffectedFixed in
github.com/formancehq/ledger Go
pkg:golang/github.com/formancehq/ledger
From 2.2.0-beta.32.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.

Is CVE-2026-135164 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free