high8.7
CVE-2026-135164
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 accou…
Impact
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.
An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Formancehq)
| Product | Affected versions |
|---|---|
| Ledger | from 2.2.0-beta.3 before 2.4.18 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/formancehq/ledger/pull/2477
- https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3
- https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.go
- https://github.com/formancehq/ledger/releases/tag/v2.4.18
- https://www.vulncheck.com/advisories/formance-ledger-2.2.0-beta.3-before-2.4.18-sql-injection-via-account-expand-parameter
- https://github.com/advisories/GHSA-7pcx-wr6v-4qx5
- https://nvd.nist.gov/vuln/detail/CVE-2026-135164