Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.4
CVE-2026-135164: Formance Ledger API lets attackers run database commands
CVE-2026-135164 · published 12 days ago
Summary
The Formance Ledger service (versions before 2.4.18) accepts special request parameters without checking them. An attacker could insert their own database commands and make the system run them with the Ledger's own privileges. Update to version 2.4.18 or later, or apply the vendor's patch, to stop this behavior.
What to do
- Update formancehq ledger to version 2.4.18 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| formancehq | ledger | < 2.4.18 |
Original advisory text
Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter
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.
References
- https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resour... Third Party Advisory
- https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26... Patch
- https://github.com/formancehq/ledger/pull/2477 Patch
- https://github.com/formancehq/ledger/releases/tag/v2.4.18 Vendor Advisory
- https://www.vulncheck.com/advisories/formance-ledger-2.2.0-beta.3-before-2.4.18-... Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-1351... Vendor Advisory
- https://github.com/formancehq/ledger Product
- https://nvd.nist.gov/vuln/detail/CVE-2026-135164 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
9.4
Critical
Type
CWE-89SQL Injection
Timeline
Published23 Nov 2026
Updated5 Dec 2026
First seen23 Nov 2026
Track software like this
Free during beta