Skip to main content

FrontAccounting CVE-2026-40521

| EUVDEUVD-2026-40083 HIGH
Path Traversal (CWE-22)
2026-06-29 VulnCheck GHSA-9fmm-h59x-wr53
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate with low-privilege account
  2. Delivery
    Open attachment upload feature
  3. Exploit
    Set unique_name to ../../../shell.php
  4. Install
    Submit PHP payload past extension check
  5. C2
    File written into web root
  6. Execute
    Request shell URL
  7. Impact
    Execute commands as web server user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

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 session - the CVSS vector specifies PR:L, so a valid low-privileged FrontAccounting account is needed - plus access to the attachment upload functionality. The concrete prerequisite from the description is the ability to control the unique_name parameter in the attachment upload handler and supply path-traversal sequences (e.g. ../../../shell.php); success also depends on the attachments/web-root path being writable by the web server and PHP execution being enabled where the file lands (the default deployment serves PHP from the web root). Limiting factors: an account is required (no unauthenticated path), the application/upload endpoint must be network-reachable, and the target must run a vulnerable version prior to 2.4.20 with no web-server-level block on PHP execution in upload paths.

Impact

Signals are largely consistent and point to a genuine, high-priority issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VC:H/VI:H/VA:H and a base score of 8.7 indicates network-reachable exploitation, low complexity, no user interaction, and full impact to confidentiality, integrity, and availability of the vulnerable system - gated only by low-privilege authentication (PR:L). A public proof-of-concept/write-up (JivaSecurity) plus VulnCheck reporting raises real-world likelihood beyond the raw score. No EPSS score and no SSVC decision values were supplied, and the CVE is not in CISA KEV, so there is no confirmation of active exploitation - the practical limiter is that a valid (even low-privileged) application account is required, making opportunistic mass exploitation harder than for a fully unauthenticated bug. Net assessment: treat as a real priority for any internet-exposed FrontAccounting instance, especially given working exploit code and an available patch.

Exploit ScenarioDerived

An attacker with a low-privileged FrontAccounting login navigates to a feature that uploads an attachment and intercepts the request, setting the unique_name parameter to something like ../../../shell.php with PHP web-shell content as the body. Because the path is not sanitized and the extension is not checked, the file is written into the web root and can then be requested directly to run arbitrary commands as the web server user. A public write-up/PoC (JivaSecurity) demonstrates the full chain, and the low attack complexity (AC:L, no user interaction) makes reliable exploitation straightforward once authenticated.

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

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

Alert me

AnalysisAIv1 – Jun 29, 2026

Remote code execution in FrontAccounting before 2.4.20 lets an authenticated user abuse the attachment upload handler to plant a PHP web shell. The handler fails to validate the unique_name parameter, so traversal sequences write attacker-controlled files outside the attachments directory and into the web root, and because file extensions are not validated, an uploaded PHP file executes as the web server user. Publicly available exploit code exists and a vendor patch is available, though the issue is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade to FrontAccounting 2.4.20, which addresses the traversal and missing extension validation in the attachment upload handler (release notes: https://sourceforge.net/p/frontaccounting/news/2026/04/release-2420/; fix commit: https://github.com/FrontAccountingERP/FA/commit/701fea6848da4a02fb83d30f07a9c0473d6b7e33). If you cannot upgrade immediately, apply specific compensating controls: restrict access to the attachment upload endpoints to trusted users only and place the whole application behind authentication/VPN to reduce the pool of attackers who can submit uploads; configure the web server to deny PHP execution within the attachments/upload directory (for example an Apache 'php_admin_flag engine off' or removing the PHP handler for that path, or an equivalent nginx location block) so a planted .php file cannot run - note this does not stop the traversal write itself, only execution at the intended location, so it can be bypassed if files land elsewhere in the web root; and add a WAF/proxy rule rejecting requests whose parameters contain '../' or encoded traversal sequences, accepting that aggressive filtering can break legitimate filenames. The durable fix remains upgrading to 2.4.20.

Affected VersionsENISA

FrontAccounting patch: 701fea6848da4a02fb83d30f07a9c0473d6b7e33
FrontAccounting 0 <2.4.20

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 double-entry accounting/ERP application written in PHP (CPE cpe:2.3:a:frontaccounting:frontaccounting). The flaw is a classic CWE-22 Improper Limitation of a Pathname to a Restricted Directory (path traversal): the file attachment feature builds the destination path from a client-supplied unique_name value without canonicalizing or constraining it, so '../' sequences let the saved file escape the intended attachments folder. Combined with the absence of server-side extension/content-type validation, an attacker can write executable .php content into a web-accessible directory, turning a file-write primitive into code execution under the PHP/web server process context.

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 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Network-reachable upload, low complexity, but a low-privileged authenticated account is required (PR:L); web-shell write yields full host compromise so C/I/A all High; scope unchanged as impact is to the vulnerable system.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/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
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FrontAccounting before 2.4.20 contains a path traversal vulnerability in the attachment upload handler that allows authenticated attackers to execute arbitrary code by uploading files with traversal sequences in the unique_name parameter. Attackers can supply path traversal sequences ../../../shell.php to write files outside the intended attachments directory into the web root, and by uploading PHP files without extension validation, achieve remote code execution as the web server user.

Executive ViewAI

Why It Matters

FrontAccounting versions before 2.4.20 contain a remote code execution vulnerability allowing authenticated users to upload PHP files that execute on the web server, enabling attackers with valid credentials to gain full system control and access sensitive financial data. This poses significant risk to organizations processing transactions through affected versions.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 54% exploitable
Prevalence
Low
niche open-source ERP/accounting app, limited enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
6 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.6%
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
Total

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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-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-2026-40522 HIGH POC
7.1 Jun 29

SQL injection in FrontAccounting before 2.4.20 allows authenticated attackers to extract arbitrary database contents by

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