GHSA-9fmm-h59x-wr53
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.
AI Analysis
Technical Summary
The vulnerability in FrontAccounting prior to version 2.4.20 involves improper validation of the unique_name parameter in the attachment upload handler. This allows authenticated users to include path traversal sequences (e.g., ../../../shell.php) to write files outside the designated attachments directory, specifically into the web root. Because the application does not validate file extensions, attackers can upload PHP files and execute arbitrary code remotely with the privileges of the web server user.
Potential Impact
Successful exploitation enables authenticated attackers to execute arbitrary code on the server by uploading malicious PHP files outside the intended directory. This can lead to full compromise of the web server environment under the web server user context.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, 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.
GHSA-9fmm-h59x-wr53
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.
CVSS v4.0
Affected software
pkg:github/frontaccountingerp/FARun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in FrontAccounting prior to version 2.4.20 involves improper validation of the unique_name parameter in the attachment upload handler. This allows authenticated users to include path traversal sequences (e.g., ../../../shell.php) to write files outside the designated attachments directory, specifically into the web root. Because the application does not validate file extensions, attackers can upload PHP files and execute arbitrary code remotely with the privileges of the web server user.
Potential Impact
Successful exploitation enables authenticated attackers to execute arbitrary code on the server by uploading malicious PHP files outside the intended directory. This can lead to full compromise of the web server environment under the web server user context.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, 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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9fmm-h59x-wr53
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-40521"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a42ed5027e9c797199361c0
Added to database: 06/29/2026, 22:10:24 UTC
Last enriched: 06/29/2026, 22:29:08 UTC
Last updated: 06/30/2026, 01:17:08 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.