CVE-2026-135164 in Ledgerinfo

Summary

by MITRE • 11/23/2026

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.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/23/2026

Formance Ledger versions prior to 2.4.18 are susceptible to a critical SQL injection vulnerability within its remote API interface, specifically affecting the beta release 2.2.0-beta.3 and subsequent updates up to but not including version 2.4.18. This security flaw stems from insufficient input validation on account expand values provided by clients interacting with the system via RESTful endpoints. The architecture of Formance Ledger relies heavily on dynamic query construction based on user-supplied parameters, particularly when expanding related entities or navigating through paginated results. In this specific instance, the application fails to properly sanitize or parameterize inputs associated with the expand query parameter and base64-encoded pagination cursors before incorporating them into SQL statements executed against the underlying database.

The technical mechanism of exploitation involves an attacker crafting malicious payloads that exploit how these parameters are parsed and integrated into the database layer. By supplying unvalidated account expand values, a remote adversary can inject comment-separated SQL commands directly into the query string. This technique allows the injected code to bypass standard logical checks within the application logic by using SQL comments to truncate or alter the intended query structure. Furthermore, the vulnerability extends to base64 pagination cursors, which are often used for efficient data retrieval in large datasets but were found to be processed without adequate security controls against injection attacks. This dual vector of exploitation significantly increases the attack surface and makes detection more challenging for automated monitoring tools that may not inspect both parameter types comprehensively.

The operational impact of this vulnerability is severe due to the privilege level associated with the ledger database role. When an attacker successfully exploits this SQL injection, they execute queries using the credentials assigned to the application's database user account. Depending on the configuration and security posture of the deployment environment, this often grants the attacker elevated privileges that may include read access to sensitive financial data, modification or deletion of transactional records, and potentially further escalation depending on database engine capabilities such as stored procedures or file system access. For a ledger system handling immutable audit trails and critical financial state transitions, unauthorized manipulation or exfiltration of data undermines the core integrity guarantees provided by the software, leading to potential regulatory non-compliance and significant reputational damage for organizations relying on Formance Ledger for their accounting infrastructure.

This vulnerability aligns with CWE-89 Improper Neutralization of Special Elements used in an SQL Command, commonly known as SQL Injection. From a tactical perspective, it maps to ATT&CK technique T1190 Exploit Public-Facing Application and potentially T1059 Command and Scripting Interpreter if the injection allows for broader command execution through database features like xp_cmdshell on Microsoft SQL Server or similar constructs in other RDBMS platforms. The exploitation method also reflects aspects of CWE-20 Improper Input Validation, as the root cause is the failure to validate and sanitize user-supplied data before processing it within a security-critical context such as dynamic query generation.

To mitigate this risk, organizations running Formance Ledger must immediately upgrade to version 2.4.18 or later where these input validation flaws have been addressed by implementing parameterized queries and strict type checking for all API inputs. Administrators should also enforce least-privilege principles on the database account used by the application, ensuring that even if an injection occurs, the potential blast radius is limited to read-only access or restricted operations necessary for normal functionality. Additionally, deploying Web Application Firewalls with specific rulesets designed to detect SQL injection patterns in query parameters and encoded payloads can provide a layer of defense-in-depth while patching efforts are completed. Regular security audits focusing on dynamic SQL construction practices across all API endpoints are recommended to prevent similar vulnerabilities from being introduced during future development cycles.

Responsible

VulnCheck

Reservation

11/23/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!