# CVE-2026-40521: FrontAccounting < 2.4.20 Path Traversal RCE via attachment upload

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-29T12:30:12.799Z
- Modified: 2026-10-23T23:10:00.157Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- FrontAccounting FrontAccounting: before 2.4.20 (not affected: 701fea6848da4a02fb83d30f07a9c0473d6b7e33)

## Every score

- VulnCheck: CVSS: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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://jivasecurity.com/writeups/frontaccounting-rce-attachment-upload-cve-2026-40521> (exploit, technical-description)
- <https://sourceforge.net/p/frontaccounting/news/2026/04/release-2420/> (release-notes)
- <https://github.com/FrontAccountingERP/FA/commit/701fea6848da4a02fb83d30f07a9c0473d6b7e33> (patch)
- <https://www.vulncheck.com/advisories/frontaccounting-path-traversal-rce-via-attachment-upload> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-40521](https://www.cve.org/CVERecord?id=CVE-2026-40521), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-40521](https://nvd.nist.gov/vuln/detail/CVE-2026-40521), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-40521 · Whole record: https://cve.day/CVE-2026-40521.json · Rebuilt by cve.day 2026-11-25T22:59:26.610Z
