Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 23, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 23, 2026
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.
| Product | Versions |
|---|---|
| ledger formancehq | 2.2.0-beta.3 to before 2.4.18 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 8.8 High | VulnCheck |
Weaknesses
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- https://github.com/formancehq/ledger/pull/2477Issue TrackerPatch
- https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3Patch
- https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.goTechnical Details
- ledger v2.4.18 Release NotesRelease Notes
- VulnCheck Advisory: Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand ParameterThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.