{"id":"CVE-2026-40521","summary":"FrontAccounting \u003c 2.4.20 Path Traversal RCE via attachment upload","details":"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.","modified":"2026-07-16T03:48:30.762547418Z","published":"2026-06-29T12:30:12.799Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40521.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"fixed":"2.4.20"}]},{"extracted_events":[{"fixed":"2.4.20"}],"source":"CPE_FIELD"},{"extracted_events":[{"fixed":"2.4.20"}],"source":"DESCRIPTION"}],"cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40521.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40521"},{"type":"ADVISORY","url":"https://sourceforge.net/p/frontaccounting/news/2026/04/release-2420/"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/frontaccounting-path-traversal-rce-via-attachment-upload"},{"type":"FIX","url":"https://github.com/FrontAccountingERP/FA/commit/701fea6848da4a02fb83d30f07a9c0473d6b7e33"},{"type":"EVIDENCE","url":"https://jivasecurity.com/writeups/frontaccounting-rce-attachment-upload-cve-2026-40521"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/frontaccountingerp/fa","events":[{"introduced":"0"},{"fixed":"701fea6848da4a02fb83d30f07a9c0473d6b7e33"}],"database_specific":{"source":"REFERENCES"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40521.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}