Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.4
CVE-2026-40521: FrontAccounting before 2.4.20 allows unauthorized PHP file upload
CVE-2026-40521 · published 4 months ago
Summary
Authenticated users can upload malicious PHP files to the server's root directory, potentially allowing them to execute arbitrary code. This can happen if the software is not updated to version 2.4.20 or later. To fix this, update to the latest version of FrontAccounting.
What to do
- Update frontaccounting frontaccounting to version 2.4.20 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| frontaccounting | frontaccounting | < 2.4.20 |
Original advisory text
FrontAccounting < 2.4.20 Path Traversal RCE via attachment upload
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.
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40521... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-40521 Vendor Advisory
- https://sourceforge.net/p/frontaccounting/news/2026/04/release-2420/ Vendor Advisory
- https://www.vulncheck.com/advisories/frontaccounting-path-traversal-rce-via-atta... Vendor Advisory
- https://github.com/FrontAccountingERP/FA/commit/701fea6848da4a02fb83d30f07a9c047... Patch
- https://jivasecurity.com/writeups/frontaccounting-rce-attachment-upload-cve-2026... Exploit
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Type
CWE-22Path Traversal
Timeline
Published29 Jun 2026
Updated4 Nov 2026
First seen29 Jun 2026
Track software like this
Free during beta