# CVE-2026-135164: Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-11-23T14:38:57.127Z
- Modified: 2026-11-23T17:17:51.070Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- formancehq ledger: from 2.2.0-beta.3 before 2.4.18

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/formancehq/ledger/pull/2477> (issue-tracking, patch)
- <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)

## Sources

- CVE List: [CVE-2026-135164](https://www.cve.org/CVERecord?id=CVE-2026-135164), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-135164](https://nvd.nist.gov/vuln/detail/CVE-2026-135164), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-135164 · Whole record: https://cve.day/CVE-2026-135164.json · Rebuilt by cve.day 2026-11-25T22:59:52.649Z
