aaPanel Arbitrary File Upload Vulnerability Allowing Code Execution

Vulnerability

A vulnerability allowing arbitrary file upload has been identified in aaPanel version 7.57.0. This issue arises from inadequate validation of uploaded files, particularly images, enabling attackers to upload malicious SVG files containing executable code. Once uploaded, these files can be accessed and executed, leading to unauthorized code execution on the server.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the server where aaPanel is installed.

Reproduction

To reproduce this vulnerability, upload a crafted SVG file containing malicious JavaScript payloads through the aaPanel interface. The file will be stored and can be accessed via the application's asset delivery pipeline, where it will be executed by the browser, resulting in a stored cross-site scripting (XSS) attack. This vulnerability can also be exploited to perform a local file inclusion (LFI) attack, according to the author.

Added: Mar 18, 2026, 7:23 PM
Updated: Mar 18, 2026, 7:23 PM

Vulnerability Rating

Custom Algorithm
spread
5.0
impact
10.0
exploitability
6.6
remediation
0.0
relevance
4.1
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.