Skip to main content

FrontAccounting EUVDEUVD-2026-40081

| CVE-2026-40522 HIGH
SQL Injection (CWE-89)
2026-06-29 VulnCheck GHSA-53v3-ffpm-f9hw
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with low-privilege account
  2. Delivery
    Open Bank Statement report
  3. Exploit
    Inject UNION SELECT into PARAM_0
  4. Execution
    SQL executes via unparameterized WHERE
  5. Persist
    Users table data rendered into PDF
  6. Impact
    Exfiltrate hashes and emails

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated FrontAccounting session with access to the Bank Statement report feature (the rep601.php handler) - the CVSS PR:L confirms a valid low-privilege account is needed, so this is not anonymously exploitable. The concrete prerequisite is the ability to submit the PARAM_0 POST parameter to the Bank Statement report handler on a FrontAccounting instance older than 2.4.20; the injection is delivered through the unparameterized WHERE clause and results are returned via the rendered PDF report output. Limiting factors: the attacker must hold credentials and the report-access permission, the target must run a version prior to 2.4.20, and the network endpoint must be reachable (no user interaction is required, AC is low). No special non-default configuration is otherwise needed - any standard deployment with an accessible report function is vulnerable.

Impact

Signals are largely consistent and point to a genuine but access-gated risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) indicates network-reachable, low-complexity exploitation requiring low privileges and no user interaction, with high confidentiality impact (VC:H) and only limited integrity/availability impact (VI:L/VA:N), yielding a base score of 7.1 (High). The defining constraint is PR:L - the attacker must already hold a valid, low-privilege FrontAccounting account, which sharply narrows the threat to insiders or attackers who have obtained credentials, rather than fully anonymous internet exploitation. Publicly available exploit code (the Jiva Security writeup) lowers the skill barrier and raises near-term exploitation likelihood, but the absence of CISA KEV listing means there is no confirmation of active exploitation in the wild. No EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be quantified here. Net: a real priority to patch for any organization running FrontAccounting with multiple users, but the authentication requirement and the product's modest deployment footprint temper mass-exploitation concerns.

Exploit ScenarioDerived

An attacker with a low-privilege FrontAccounting account (or stolen credentials) navigates to the Bank Statement report, then submits a crafted POST request injecting a UNION SELECT payload into the PARAM_0 parameter. The injected query pulls usernames, password hashes, and email addresses from the users table, which are rendered into the generated PDF report and read back by the attacker. A public exploit/writeup (Jiva Security) demonstrates this, lowering the effort required given the low attack complexity.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 29, 2026

SQL injection in FrontAccounting before 2.4.20 allows authenticated attackers to extract arbitrary database contents by injecting UNION SELECT payloads into the PARAM_0 POST parameter of the Bank Statement report handler (rep601.php). Attackers with valid low-privilege accounts can dump usernames, password hashes, and email addresses from the users table, with results rendered into the generated PDF report. Publicly available exploit code exists and a vendor patch was released in 2.4.20; the flaw is not listed in CISA KEV and no active exploitation is confirmed.

RemediationAI

Upgrade to FrontAccounting 2.4.20 or later, which contains the fix (Vendor-released patch: 2.4.20; release notes at https://sourceforge.net/p/frontaccounting/news/2026/04/release-2420/ and source commit https://github.com/FrontAccountingERP/FA/commit/894adaf71393e0ef6a04fe6036fcd2464050f590). If immediate upgrading is not possible, apply the upstream commit to rep601.php to parameterize the PARAM_0 input as the most targeted control. As compensating measures until patched, restrict access to the Bank Statement report function by removing the relevant report/security role from all but trusted accounting users (trade-off: legitimate users lose that report), and place the FrontAccounting instance behind network restrictions or a WAF rule that blocks UNION/SQL metacharacters in the PARAM_0 POST parameter (trade-off: WAF rules can be bypassed and may false-positive on legitimate report parameters). Additionally, rotate any potentially exposed credentials and ensure stored password hashes use a strong algorithm, since the users table is a confirmed exfiltration target. Vendor/third-party references: VulnCheck advisory https://www.vulncheck.com/advisories/frontaccounting-sql-injection-via-rep601-php.

Affected VersionsENISA

FrontAccounting 0 <2.4.20
FrontAccounting patch: 894adaf71393e0ef6a04fe6036fcd2464050f590

Affected Packages

euvd frontaccounting fix: 2.4.20

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FrontAccounting is an open-source, web-based ERP/accounting application written in PHP that uses a MySQL/MariaDB backend. The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command): the Bank Statement report handler (rep601.php) builds a SQL WHERE clause by concatenating the user-supplied PARAM_0 value without parameterization or escaping, so attacker-controlled syntax is executed directly by the database. Because the report renders query output into a PDF, the unparameterized clause becomes an in-band/UNION-based exfiltration channel - UNION SELECT payloads append attacker-chosen columns (e.g., from the users table) to the legitimate result set, which are then printed in the report output. The affected component is identified in the CPE cpe:2.3:a:frontaccounting:frontaccounting:*:*:*:*:*:*:*:* covering all versions prior to the 2.4.20 fix.

Know when Frontaccounting gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Network-reachable report endpoint with low complexity but requires an authenticated low-privilege account (PR:L); high confidentiality from full DB read, limited integrity, no availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:N/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FrontAccounting before 2.4.20 contains a SQL injection vulnerability in the Bank Statement report handler that allows authenticated attackers to extract arbitrary database data by injecting UNION SELECT payloads into the PARAM_0 POST parameter. Attackers can supply malicious SQL syntax through the unparameterized WHERE clause to retrieve sensitive information including usernames, password hashes, and email addresses from the users table, rendered into PDF report output.

Executive ViewAI

Why It Matters

FrontAccounting versions before 2.4.20 contain a SQL injection vulnerability allowing authenticated attackers to extract sensitive database contents including usernames, password hashes, and email addresses through the Bank Statement report handler. Organizations using affected versions face credential compromise and data breach risk from low-privilege user accounts with valid login access.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
niche open-source ERP, limited SMB deployment footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2019-5720 CRITICAL POC
9.8 Jan 08

includes/db/class.reflines_db.inc in FrontAccounting 2.4.6 contains a SQL Injection vulnerability in the reference field

CVE-2026-40521 HIGH POC
8.7 Jun 29

Remote code execution in FrontAccounting before 2.4.20 lets an authenticated user abuse the attachment upload handler to

CVE-2018-7176 HIGH POC
8.8 Feb 16

FrontAccounting 2.4.3 suffers from a CSRF flaw, which leads to adding a user account via admin/users.php (aka the "add u

CVE-2014-3973 HIGH POC
7.5 Jun 05

Multiple SQL injection vulnerabilities in FrontAccounting (FA) before 2.3.21 allow remote attackers to execute arbitrary

CVE-2018-1000890 HIGH POC
7.5 Dec 28

FrontAccounting 2.4.5 contains a Time Based Blind SQL Injection vulnerability in the parameter "filterType" in /attachme

CVE-2026-40524 HIGH POC
7.2 Jun 29

SQL injection in FrontAccounting's get_gl_transactions() function lets authenticated users holding the SA_GLANALYTIC per

CVE-2026-40523 HIGH POC
7.2 Jun 29

SQL injection in FrontAccounting's Audit Trail report handler (reporting/rep710.php) lets authenticated users holding th

CVE-2020-21244 MEDIUM POC
4.9 Sep 30

An issue was discovered in FrontAccounting 2.4.7. Rated medium severity (CVSS 4.9), this vulnerability is remotely explo

CVE-2026-80211 HIGH
8.2 Aug 27

Unsalted MD5 password hashing in FrontAccounting through 2.4.20 renders every stored credential recoverable in minutes i

CVE-2026-80210 HIGH
7.1 Aug 27

FrontAccounting 2.4.20 and earlier selectively enforces CSRF validation - tokens are generated for every rendered form b

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy