/

CVE-2026-65874

Severity:

HIGH RISK

(8.8)

SQL Injection (CWE-89) in Apache Fineract Read APIs

CVE-2026-65874

Analyzed

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Blind SQL injection and potential unauthorized database information disclosure

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Apache Fineract's center and datatable read endpoints incorporate caller-supplied ordering parameters into SQL queries without reliably preventing SQL injection. An authenticated user with read access to the relevant endpoint may be able to use time-based blind injection to infer information from the database.

Affected context

The issue affects Apache Fineract versions up to and including 1.15.0 in the center read endpoint and datatable entry read endpoints. It occurs when caller-supplied ordering parameters are used to construct SQL ORDER BY clauses; regex-based validation may not reject all malicious input.

Exploit preconditions

  • Attack surface: The center or datatable read API endpoints
  • Required access: An authenticated account with read access to centers or the targeted datatable
  • Trigger point: Processing of caller-supplied orderBy, sortOrder, or order parameters
  • Why exploitation is possible: Ordering values are concatenated into SQL, and existing regex validation can be bypassed

Why this happens

The application constructs SQL ORDER BY clauses by concatenating caller-controlled ordering parameters. Regex-based checks do not reliably constrain these values before query construction, allowing SQL syntax to be interpreted as part of the query. This is CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').

Potential impact

  • An attacker could use time-based responses to infer database information
  • Sensitive data accessible to the application account may be exposed
  • Depending on database permissions and query behavior, database integrity or availability could be affected

General mitigation guidance

Mitigation generally focuses on preventing untrusted values from becoming SQL syntax.

Common defensive patterns include:

  • Use parameterized queries where supported and avoid constructing SQL from caller input
  • Map ordering options to a fixed allowlist of known column names and directions
  • Validate inputs against explicit, narrow schemas rather than relying on regex checks alone
  • Apply least-privilege permissions to database accounts used by the application
  • Keep database errors and timing behavior from revealing unnecessary information

How teams detect issues like this

High-level detection approaches include:

  • Static analysis for SQL strings assembled through concatenation with request parameters
  • Code review of sorting and ordering logic in API read endpoints
  • Checks that ordering fields and directions are selected from strict allowlists
  • Testing and policy enforcement to flag dynamic SQL construction without safe validation

Automated code review tools may help identify these patterns.

Sources

SourceLink
github.comgithub.com/apache/fineract/pull/6230
github.comgithub.com/apache/fineract/pull/6277
lists.apache.orglists.apache.org/thread/c4q539mkm5blnp5vdb72tzq6r9qg7bdh
openwall.comopenwall.com/lists/oss-security/2026/10/30/5

Frequently asked

questions

It can be triggered through the affected API endpoints, but exploitation requires an authenticated user with the relevant read access.

The user needs read access to centers or to the targeted datatable, depending on the endpoint used.

Avoid concatenating caller-controlled values into SQL. Use fixed allowlists for ordering options and parameterized query patterns where applicable.

Treat request parameters as untrusted, review dynamic SQL construction, and enforce narrow input schemas and least-privilege database access.

Find out what's already
exploitable in your codebase.