CVE-2026-57821 Apache Fineract: Office list: SQL Injection via Subquery in orderBy
Authenticated users can inject SQL via the orderBy parameter in Apache Fineract to exfiltrate data or cause denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-57821?
CVE-2026-57821 is a high-severity SQL injection vulnerability in Apache Fineract, published on 15 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A SQL Injection vulnerability exists in Apache Fineract's Office Search API (GET /api/v1/offices) in versions up to and including 1.14.0. The orderBy request parameter is concatenated into a SQL query without sufficient validation, allowing an authenticated user with permission to view offices to inject arbitrary SQL via a crafted orderBy value. This is a bypass of the ColumnValidator fix introduced for CVE-2024-32838, which does not detect bare subqueries in the ORDER BY position. This can be leveraged to perform time-based blind SQL injection for data exfiltration. Because the injected query blocks the database connection for its full duration, concurrent exploitation can exhaust the application's database connection pool, resulting in denial of service for other users. Users are recommended to upgrade to a version containing the fix.
Weakness: CWE-89
Which versions are affected by CVE-2026-57821?
It affects 1 product.
Products include Apache Fineract.
How do I fix CVE-2026-57821?
No fix has been published for CVE-2026-57821 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-57821 being exploited?
There is no known exploitation of CVE-2026-57821 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Apache Fineract
Sources
Also known as GHSA-wq49-6h5f-gc65.