CVE-2026-40521
FrontAccounting < 2.4.20 Path Traversal RCE via attachment upload
- State
- Published
- Severity
- 8.7 High
- Published
- Jun 29, 2026
- Updated
- Jul 14, 2026
- Reserved
- Apr 13, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 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 | VulnCheck |
| 3.1 | 8.8 High | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
FrontAccountingFrontAccounting |
|
References
- https://jivasecurity.com/writeups/frontaccounting-rce-attachment-upload-cve-2026-40521technical-descriptionexploit
- https://sourceforge.net/p/frontaccounting/news/2026/04/release-2420/release-notes
- https://github.com/FrontAccountingERP/FA/commit/701fea6848da4a02fb83d30f07a9c0473d6b7e33patch
- https://www.vulncheck.com/advisories/frontaccounting-path-traversal-rce-via-attachment-uploadthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.