Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
FrontAccounting FrontAccounting
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

frontaccounting是frontaccounting团队开源的一款会计管理软件。 FrontAccounting 2.4.20之前版本存在路径遍历漏洞,该漏洞源于附件上传处理程序中的路径遍历问题,允许通过身份验证的攻击者通过上传包含遍历序列(unique_name参数)的文件来执行任意代码。攻击者可以提交路径遍历序列../../../shell.php将文件写入预期附件目录之外的Web根目录,并通过上传没有扩展名验证的PHP文件实现远程代码执行。

CVSS 8.8 · High EPSS 0.98% · P61

Affected Version Matrix 2

VendorProduct Version RangeStatus
FrontAccounting FrontAccounting < 2.4.20 affected
701fea6848da4a02fb83d30f07a9c0473d6b7e33 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40521

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
FrontAccounting < 2.4.20 Path Traversal RCE via attachment upload
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
FrontAccounting 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
frontaccounting是frontaccounting团队开源的一款会计管理软件。 FrontAccounting 2.4.20之前版本存在路径遍历漏洞,该漏洞源于附件上传处理程序中的路径遍历问题,允许通过身份验证的攻击者通过上传包含遍历序列(unique_name参数)的文件来执行任意代码。攻击者可以提交路径遍历序列../../../shell.php将文件写入预期附件目录之外的Web根目录,并通过上传没有扩展名验证的PHP文件实现远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
FrontAccounting FrontAccounting 0 ~ 2.4.20 -

II. Public POCs for CVE-2026-40521

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8011 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-40521

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-40521 (1)

Security Blog Posts for CVE-2026-40521 (1)

Other References for CVE-2026-40521 (1)

Same Patch Batch · FrontAccounting · 2026-06-29 · 4 CVEs total

CVE-2026-40523 8.1 HIGH FrontAccounting < 2.4.20 SQL Injection via reporting/rep710.php
CVE-2026-40524 8.1 HIGH FrontAccounting < 2.4.20 SQL Injection via get_gl_transactions()
CVE-2026-40522 7.1 HIGH FrontAccounting < 2.4.20 SQL Injection via rep601.php

IV. Related Vulnerabilities

V. Comments for CVE-2026-40521

No comments yet


Leave a comment