Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to ledger API as low-privilege caller
-
DeliveryCraft malicious expand value or base64 cursor
-
ExploitInject comment-separated SQL (e.g. pg_sleep)
-
ExecutionExecute queries as ledger DB role
-
ImpactRead or alter ledger financial data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must be a remote API caller with at least low-level privileges (PR:L) able to reach the v1 or v2 account list endpoints or the v2 account read endpoint. The concrete prerequisite is supplying an unvalidated value to the account |
| Impact | This is a credible near-term priority rather than a CVSS-inflated issue, but it is gated by authentication. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) describes a network-reachable, low-complexity attack that nonetheless requires low-level privileges (PR:L), i.e. a valid API caller - so it is not an unauthenticated internet-wide bug. Vulnerable-system impact is maximal (VC:H/VI:H/VA:H): a successful injection runs with the ledger database role's privileges, exposing and potentially altering financial ledger data, while subsequent-system metrics are N (no confirmed pivot beyond the database authority). The vuln.today Decision label is this_week, consistent with VulnCheck reporting and an available vendor patch, so this warrants prompt remediation this week rather than emergency same-day action. No EPSS score and no CISA KEV entry are provided, and the vulnerability is not listed as actively exploited; the only exploitation signal is a demonstrative injection payload embedded in the vendor's own regression test. Missing data to note explicitly: EPSS probability is absent, so widespread-exploitation likelihood cannot be quantified, and there is no KEV confirmation, so treat this as a patch-driven priority rather than confirmed in-the-wild activity. |
| Exploit ScenarioDerived | An attacker who already holds low-privilege API access to a Formance Ledger instance calls the v1/v2 account list endpoints or v2 account read endpoint and supplies a crafted value in the expand query parameter - or smuggles it inside the base64 pagination cursor - that uses comment-separated SQL (e.g. the pg_sleep payload shown in the patch's regression test). Because unsupported expand values were forwarded verbatim into the query before the fix, the injected SQL executes with the ledger database role's privileges, allowing the attacker to read or tamper with ledger data. A demonstrative payload exists in the vendor patch, but no standalone weaponized exploit is confirmed in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
SQL injection in Formance Ledger (versions 2.2.0-beta.3 through 2.4.17) lets an authenticated remote API caller run arbitrary SQL with the ledger database role's privileges by supplying an unvalidated value in the account expand query parameter or embedding one inside the unsigned base64 pagination cursor. The flaw affects the v1 and v2 account list endpoints and the v2 account read endpoint; the v1 account read endpoint always hardcodes its expansion and is not exposed. No public exploit code was identified at time of analysis, but the vulnerability is rated 8.7 (CVSS 4.0, matching the assessed CVSS 3.1 vector), is remotely reachable with low privileges and no user interaction, and carries a this-week remediation priority.
RemediationAI
Upgrade to Formance Ledger 2.4.18, which introduces a storage-layer allow list on the account expand value (only volumes and effectiveVolumes are accepted, each gated on its required feature flag) and returns HTTP 400 VALIDATION for anything else before SQL is constructed - see the release at https://github.com/formancehq/ledger/releases/tag/v2.4.18, the fix in https://github.com/formancehq/ledger/pull/2477 and commit https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3; the pre-fix code path is visible for comparison at https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.go. No vendor-documented workaround is published in the available references, so until the patched build is deployed the practical compensating measures are to restrict network and credential access to the v1/v2 account list and v2 account read endpoints to the API clients that genuinely need them (exploitation requires a valid low-privilege API caller), and to run the ledger with a database role holding only the minimum privileges it needs - trade-offs being reduced integration surface for the first and possible breakage of any ledger operations that rely on broader role grants for the second. After upgrading, expect clients that previously sent undocumented expand values or stale cursors containing them to start receiving 400 VALIDATION errors, and verify that MOVES_HISTORY=ON (for volumes) and MOVES_HISTORY_POST_COMMIT_EFFECTIVE_VOLUMES=SYNC (for effectiveVolumes) are set where those expansions are required, since the fixed handler rejects requests whose required feature flag is not in the expected state.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Formance Ledger is a Go-based financial ledger service exposing v1 and v2 HTTP APIs over a PostgreSQL-backed storage layer. The account list routes (v1 and v2) and the v2 account read route accept an expand query parameter that adds computed volume data to returned accounts; the value is read from r.URL.Query()["expand"] or from the unsigned base64 pagination cursor and forwarded verbatim into storagecommon.ResourceQuery.Expand in the storage layer, where it was used to build SQL without validation - the classic CWE-89 root cause of an unvalidated identifier/fragment reaching query construction. The upstream regression test uses the comment-separated payload x,//(select//pg_sleep(2))as/**/y, confirming injection into the expansion clause of a PostgreSQL query. The fix moves enforcement into the storage layer (internal/storage/ledger/resource_accounts.go, Expand handler): only volumes (requiring MOVES_HISTORY=ON) and effectiveVolumes (requiring MOVES_HISTORY_POST_COMMIT_EFFECTIVE_VOLUMES=SYNC) are accepted, every other value fails with ErrInvalidQuery before the SQL is built, and the API layer maps that error to HTTP 400 VALIDATION via HandleCommonErrors and HandleCommonPaginationErrors for both query-string and cursor-embedded values. CPE coverage is cpe:2.3:a:formancehq:ledger:*:*:*:*:*:*:*:*, with no platform or configuration constraints recorded in the available data.
Know when Ledger gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable API SQLi with low complexity but requiring a low-privilege authenticated caller (PR:L); full DB-role C/I/A impact within the same database authority, so S:U.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
CVE-2026-135164 is a high-severity SQL injection in Formance Ledger that allows an authenticated API caller to execute arbitrary SQL, potentially exposing or corrupting financial ledger data. This impacts any organization using the affected versions for financial operations, and leadership should prioritize remediation within the week to protect data integrity and comply with regulatory obligations.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
A flawed protocol design in the Ledger Monero app before 1.5.1 for Ledger Nano and Ledger S devices allows a local attac
Ledger Live before 2.7.0 does not handle Bitcoin's Replace-By-Fee (RBF). Rated high severity (CVSS 8.1), this vulnerabil
The ledger::parse_date_mask_routine function in times.cc in Ledger 3.1.1 allows remote attackers to cause a denial of se
The find_option function in option.cc in Ledger 3.1.1 allows remote attackers to cause a denial of service (stack-based
An exploitable buffer overflow vulnerability exists in the tag parsing functionality of Ledger-CLI 3.1.1. Rated high sev
An exploitable use-after-free vulnerability exists in the account parsing component of the Ledger-CLI 3.1.1. Rated high
Ledger Bitcoin app versions 2.1.0 and 2.1.1 contain an address derivation vulnerability that allows attackers to cause i
On Ledger Nano S and Nano X devices, a side channel for the row-based OLED display was found. Rated low severity (CVSS 2
EUVD-2026-133074
GHSA-7pcx-wr6v-4qx5
NVD
CVE.org
Vulnrichment
Exploit-DB