CVE-2026-135164
Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter
High · 8.7Fix available
- CVSS
- 8.7
- EPSS
- 0.50% (p36)
- Published
- 2026-11-23
- Age
- 6d old
- Modified
- 2026-11-24
- Product
- formancehq ledger
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
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.
Fixed in
2.4.18
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | ledger | >=2.2.0-beta.3, <2.4.18 | 2.4.18 |
Sources
- NVD · first seen 6d ago · NVD terms of use
- OSV · first seen 6d ago · CC-BY 4.0
- CVE List · first seen 6d ago · CVE Terms of Use
References
- https://github.com/formancehq/ledger/pull/2477 issue-tracking
- https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3 patch
- https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.go technical-description
- https://github.com/formancehq/ledger/releases/tag/v2.4.18 release-notes
- https://www.vulncheck.com/advisories/formance-ledger-2.2.0-beta.3-before-2.4.18-sql-injection-via-account-expand-parameter third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135164.json advisory
- https://github.com/formancehq/ledger package
- https://nvd.nist.gov/vuln/detail/CVE-2026-135164 advisory