CVE-2026-40521: FA · FrontAccounting versions before 2.4.20 have a path traversal vulnerability in the attachment upload handler
Affects FASource GCVE Database
Not known to be exploited · CVSS 8.8 High : upgrade to 2.4.20 soon.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 62% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.4.20
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade frontaccountingerp/FA to 2.4.20.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubfrontaccountingerp/FApkg:github/frontaccountingerp/FAOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, restrict authenticated user permissions to upload attachments and validate or sanitize file names and extensions at the application level to prevent path traversal and code execution.
Description
FrontAccounting versions before 2.4.20 have a path traversal vulnerability in the attachment upload handler. Authenticated attackers can exploit this by uploading files with traversal sequences in the unique_name parameter, allowing them to write files outside the intended directory into the web root. By uploading PHP files without extension validation, attackers can achieve remote code execution as the web server user.
References
- nvd.nist.gov/vuln/detail/CVE-2026-40521 (opens in a new tab)
- github.com/FrontAccountingERP/FA/commit/701fea6848da4a02fb83d30f07a9c0473d6b7e33 (opens in a new tab)
- jivasecurity.com/writeups/frontaccounting-rce-attachment-upload-cve-2026-40521 (opens in a new tab)
- sourceforge.net/p/frontaccounting/news/2026/04/release-2420 (opens in a new tab)
- vulncheck.com/advisories/frontaccounting-path-traversal-rce-via-attachment-upload (opens in a new tab)