SQL injection in Formance Ledger via account expand parameter
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
Formance Ledger from 2.2.0-beta.3 before 2.4.18 contains an SQL injection flaw (CWE-89) in how it handles account expand values. A remote API caller who has low privileges can inject SQL through the expand query parameter or the base64 pagination cursor, and the injected SQL runs with the privileges of the ledger database role. The CVSS 4.0 base score is 8.7 (HIGH).
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
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 now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| formancehq | ledger | 2.2.0-beta.3 to before 2.4.18 | 2.4.18 | Patch available | CNA |
- ledger Vendorformancehq Affected 2.2.0-beta.3 to before 2.4.18 Fixed in 2.4.18 Patch available CNA
Remediation
Upgrade formancehq ledger to version 2.4.18, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA ledger (formancehq) Fixed in 2.4.18
Timeline
- 2026-11-23 Threatist record created from CVE-2026-135164
- 2026-11-23 Alias added: GHSA-7pcx-wr6v-4qx5
- 2026-11-23 CISA SSVC decision points changed
References
Sources
- CVE-2026-135164 · CVE Program
- CVE-2026-135164 · NVD
- FIRST EPSS
- GHSA-7pcx-wr6v-4qx5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences