CVE-2026-40521

FrontAccounting < 2.4.20 Path Traversal RCE via attachment upload

Published Jun 29, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

FrontAccounting versions prior to 2.4.20 contain a path traversal flaw that permits authenticated users to write files outside the intended attachments directory. By crafting the unique_name parameter with sequences such as ../../../shell.php and uploading a PHP script without proper extension validation, an attacker can place a file in the web root and execute it as the web server user, thereby achieving remote code execution.

Affected Systems

FrontAccounting installations running any release older than 2.4.20 are affected, regardless of deployment type or hosting environment.

Risk and Exploitability

The CVSS score of 8.7 marks this flaw as high severity. Because the exploit requires authenticated access and a file upload capability, attackers who can log into the system may execute arbitrary code with the privileges of the web server. The EPSS score is not available, and the flaw is not listed in CISA KEV, but the potential for widespread exploitation in environments where file uploads are enabled warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FrontAccounting to version 2.4.20 or later.
  • If an upgrade is not immediately possible, disable the attachment upload functionality or enforce strict file type validation to block PHP script uploads.
  • Configure the web server or .htaccess to deny execution of files in the attachments directory and restrict permissions on the web root to prevent execution of uploaded code.

Generated by OpenCVE AI on June 29, 2026 at 14:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:frontaccounting:frontaccounting:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Frontaccounting
Frontaccounting frontaccounting
Vendors & Products Frontaccounting
Frontaccounting frontaccounting
Type Values Removed Values Added
Description 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.
Title FrontAccounting < 2.4.20 Path Traversal RCE via attachment upload
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 14, 2026, 8:00 PM
Reserved
Apr 13, 2026, 8:29 PM
Status
Deferred
Published
Jun 29, 2026, 2:16 PM
Modified
Oct 23, 2026, 11:10 PM