Skip to main content

Formance Ledger EUVDEUVD-2026-133074

| CVE-2026-135164 HIGH
SQL Injection (CWE-89)
2026-11-23 VulnCheck GHSA-7pcx-wr6v-4qx5
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to ledger API as low-privilege caller
  2. Delivery
    Craft malicious expand value or base64 cursor
  3. Exploit
    Inject comment-separated SQL (e.g. pg_sleep)
  4. Execution
    Execute queries as ledger DB role
  5. Impact
    Read 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 expand query parameter, or embedding one inside the base64 pagination cursor, on an affected version (2.2.0-beta.3 up to but not including 2.4.18); the fix adds a storage-layer allow list (only volumes and effectiveVolumes accepted) that rejects anything else with HTTP 400 VALIDATION before SQL is built. Limiting factors: exploitation is not unauthenticated (requires valid API access per PR:L), the v1 account read endpoint is not affected because it hardcodes Expand: []string{"volumes"} and ignores client input, and the injection runs with the ledger database role's privileges (so impact is bounded by that role). No user interaction is required (UI:N).

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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ledger 2.2.0-beta.3 <2.4.18

Affected Packages

euvd ledger fix: 2.4.18

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

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Low
niche open-source financial ledger, limited and developer-focused deployment footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy