Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-135164: high-severity vulnerability (CVSS 8.7) in formancehq ledger.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 8.7.
Affected products and versions
formancehq ledger >= 2.2.0-beta.3, < 2.4.18
| Product | Versions | Fixed in |
|---|---|---|
| formancehq ledger | >= 2.2.0-beta.3, < 2.4.18 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/formancehq/ledger/pull/2477 — CVE Program
- https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3 — CVE Program
- https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.go — CVE Program
- https://github.com/formancehq/ledger/releases/tag/v2.4.18 — CVE Program
- https://www.vulncheck.com/advisories/formance-ledger-2.2.0-beta.3-before-2.4.18-sql-injection-via-account-expand-parameter — CVE Program
Weaknesses (CWE): CWE-89
Relevant change history
Published
Preliminary advisory published.