/

CVE-2026-113506

Severity:

CRITICAL RISK

(9.9)

OS Command Injection (CWE-78) in aaPanel File Manager

CVE-2026-113506

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Authenticated Remote Code Execution

Severity:

CRITICAL RISK

(9.9)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A critical OS command injection vulnerability in the aaPanel File Manager allows authenticated remote attackers to influence arguments passed to shell execution functionality. Under deployments where an attacker can reach the affected file-management operation and authenticate, successful exploitation may result in remote code execution with the privileges of the aaPanel service.

A critical OS command injection vulnerability in the aaPanel File Manager allows authenticated remote attackers to influence arguments passed to shell execution functionality. Under deployments where an attacker can reach the affected file-management operation and authenticate, successful exploitation may result in remote code execution with the privileges of the aaPanel service.

Affected context

The vulnerability occurs in aaPanel deployments using the File Manager component and its ExecShell function in class/public/common.py. Risk is present when remote users can access the affected functionality, provide controllable values for file or access-related arguments, and authenticate successfully. The resulting command execution depends on the privileges available to the aaPanel process.

The vulnerability occurs in aaPanel deployments using the File Manager component and its ExecShell function in class/public/common.py. Risk is present when remote users can access the affected functionality, provide controllable values for file or access-related arguments, and authenticate successfully. The resulting command execution depends on the privileges available to the aaPanel process.

Exploit preconditions

  • Attack surface: aaPanel File Manager functionality exposed through a reachable management interface
  • Required access: Authentication is required according to the vendor's statement
  • Trigger point: Processing of attacker-influenced sfile, dfile, access, or user arguments by ExecShell
  • Why exploitation is possible: Input values can reach operating-system command construction or execution without sufficient separation from shell syntax
  • Attack surface: aaPanel File Manager functionality exposed through a reachable management interface
  • Required access: Authentication is required according to the vendor's statement
  • Trigger point: Processing of attacker-influenced sfile, dfile, access, or user arguments by ExecShell
  • Why exploitation is possible: Input values can reach operating-system command construction or execution without sufficient separation from shell syntax

Why this happens

The underlying flaw is improper neutralization of special elements used in an operating-system command. The File Manager passes attacker-influenced values into an OS command execution path, allowing data intended as filenames or access parameters to be interpreted as command syntax. This behavior maps primarily to CWE-78, OS Command Injection, and is also related to CWE-77, Improper Neutralization of Special Elements used in a Command.

The underlying flaw is improper neutralization of special elements used in an operating-system command. The File Manager passes attacker-influenced values into an OS command execution path, allowing data intended as filenames or access parameters to be interpreted as command syntax. This behavior maps primarily to CWE-78, OS Command Injection, and is also related to CWE-77, Improper Neutralization of Special Elements used in a Command.

Potential impact

  • An attacker could execute arbitrary commands with the aaPanel service account's privileges.
  • The vulnerability may expose, alter, or delete managed files.
  • System credentials, application data, or stored secrets could be accessed.
  • A compromised server could be used for persistence, lateral movement, or further attacks.
  • Service availability could be disrupted through unauthorized system changes.
  • An attacker could execute arbitrary commands with the aaPanel service account's privileges.
  • The vulnerability may expose, alter, or delete managed files.
  • System credentials, application data, or stored secrets could be accessed.
  • A compromised server could be used for persistence, lateral movement, or further attacks.
  • Service availability could be disrupted through unauthorized system changes.

General mitigation guidance

Mitigation generally focuses on removing shell interpretation from file-management

operations and reducing the trust placed in request parameters.

Common defensive patterns include:

  • Prefer direct library or operating-system APIs over shell command construction.
  • Use fixed command arguments and structured process APIs when external commands are unavoidable.
  • Apply strict allowlists and canonicalization to file paths, usernames, and access parameters.
  • Enforce authorization checks independently for each file-management operation.
  • Run the management service with the least privileges needed for its duties.
  • Isolate administrative interfaces and limit them to trusted networks or access paths.
  • Treat authenticated input as untrusted and add security tests for command-injection boundaries.

Mitigation generally focuses on removing shell interpretation from file-management

operations and reducing the trust placed in request parameters.

Common defensive patterns include:

  • Prefer direct library or operating-system APIs over shell command construction.
  • Use fixed command arguments and structured process APIs when external commands are unavoidable.
  • Apply strict allowlists and canonicalization to file paths, usernames, and access parameters.
  • Enforce authorization checks independently for each file-management operation.
  • Run the management service with the least privileges needed for its duties.
  • Isolate administrative interfaces and limit them to trusted networks or access paths.
  • Treat authenticated input as untrusted and add security tests for command-injection boundaries.

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis rules that identify shell execution APIs receiving request parameters.
  • Code review checks for string concatenation, interpolation, or formatting used to build commands.
  • Testing that supplies shell metacharacters and verifies that values remain data rather than commands.
  • Web-application monitoring for unusual File Manager requests, command-like parameter values, or unexpected administrative activity.
  • Process and endpoint monitoring for aaPanel-spawned shells, interpreters, or system utilities.
  • Policy enforcement requiring approved process-execution wrappers and explicit input validation.

Automated code review and software composition security tools may help identify related patterns.

Organizations can look for this weakness through:

  • Static analysis rules that identify shell execution APIs receiving request parameters.
  • Code review checks for string concatenation, interpolation, or formatting used to build commands.
  • Testing that supplies shell metacharacters and verifies that values remain data rather than commands.
  • Web-application monitoring for unusual File Manager requests, command-like parameter values, or unexpected administrative activity.
  • Process and endpoint monitoring for aaPanel-spawned shells, interpreters, or system utilities.
  • Policy enforcement requiring approved process-execution wrappers and explicit input validation.

Automated code review and software composition security tools may help identify related patterns.

Sources

SourceLink
github.comgithub.com/JdExploit/aapanel-cve-2026/tree/master/aapanel-rce
vuldb.comvuldb.com/cve/CVE-2026-113506
vuldb.comvuldb.com/submit/996819
vuldb.comvuldb.com/vuln/422748
vuldb.comvuldb.com/vuln/422748/cti

Frequently asked

questions

Yes, the affected File Manager functionality can be reached remotely, but the

vendor states that exploitation requires authentication.

An attacker needs valid access to the relevant aaPanel functionality and

sufficient authorization to submit the affected file-management parameters.

The exact impact depends on the privileges of both the account and the

aaPanel service.

Replace shell-based file operations with direct, parameterized APIs, validate

all inputs using strict allowlists, and ensure authorization is checked before

processing each operation.

Treat all client-supplied values as untrusted, prohibit unsafe command

construction in coding standards, use least-privilege service accounts, and

combine code review with runtime monitoring for unexpected child processes.

Yes, the affected File Manager functionality can be reached remotely, but the

vendor states that exploitation requires authentication.

An attacker needs valid access to the relevant aaPanel functionality and

sufficient authorization to submit the affected file-management parameters.

The exact impact depends on the privileges of both the account and the

aaPanel service.

Replace shell-based file operations with direct, parameterized APIs, validate

all inputs using strict allowlists, and ensure authorization is checked before

processing each operation.

Treat all client-supplied values as untrusted, prohibit unsafe command

construction in coding standards, use least-privilege service accounts, and

combine code review with runtime monitoring for unexpected child processes.

Find out what's already
exploitable in your codebase.