{"affected":[{"defaultStatus":"unaffected","ecosystem":"golang","packageName":"github.com/formancehq/ledger","product":"ledger","source":"CNA: VulnCheck","vendor":"formancehq","versions":[{"lessThan":"2.4.18","status":"affected","version":"2.2.0-beta.3","versionType":"semver"}]}],"cveId":"CVE-2026-135164","cwes":["CWE-89"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.7,"severity":"high","source":"CNA: VulnCheck","vector":"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","version":"4.0"},{"score":8.8,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795444737127,"publishedAt":1795444737127,"references":[{"source":"CNA: VulnCheck","tags":["issue-tracking","patch"],"url":"https://github.com/formancehq/ledger/pull/2477"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.go"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://github.com/formancehq/ledger/releases/tag/v2.4.18"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/formance-ledger-2.2.0-beta.3-before-2.4.18-sql-injection-via-account-expand-parameter"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/formancehq/ledger/pull/2477"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3"}],"revision":"82bb964470abef8960df426cb5c900ad4847b97d0ac1a2070705292be79ab84d","sources":[{"modifiedAt":1795444737127,"name":"CNA: VulnCheck","retrievedAt":1795446671125,"url":"https://www.cve.org/CVERecord?id=CVE-2026-135164"}],"ssvc":null,"status":"published","title":"Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter","updatedAt":1795446671125}