CVE-2021-37840: High severity aaPanel aaPanel vulnerability

Published Aug 2, 2021
·
Updated

aaPanel through 6.8.12 allows Cross-Site WebSocket Hijacking (CSWH) involving OS commands within WebSocket messages at a ws:// URL for /webssh (the victim must have configured Terminal with at least one host). Successful exploitation depends on the browser used by a potential victim (e.g., exploitation can occur with Firefox but not Chrome).

Affected Software

1 affected component
aaPanel aaPanel<=6.8.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Prevent CSWH involving OS commands within WebSocket messages by ensuring the WebSocket endpoint for /webssh uses TLS (wss://) rather than plaintext ws://.

    aaPanel /webssh WebSocket URL scheme (ws:// vs wss://) = Use wss:// instead of ws://
  2. Configuration

    Reduce exposure by ensuring Terminal is not configured with any host on the victim side, since exploitation depends on the victim having configured Terminal with at least one host.

    aaPanel Terminal configuration Configured Terminal hosts = At least one host should not be configured

Event History

Aug 2, 2021
CVE Published
via MITRE·01:53 PM
Data Sourced
via MITRE·01:53 PM
Description
Data Sourced
via NVD·02:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2021-37840?

CVE-2021-37840 is a vulnerability in aaPanel through version 6.8.12 that allows Cross-Site WebSocket Hijacking (CSWH) involving OS commands within WebSocket messages.

2

What is Cross-Site WebSocket Hijacking (CSWH)?

Cross-Site WebSocket Hijacking (CSWH) is an attack that allows an attacker to hijack a WebSocket connection established between a client and a server.

3

How does CVE-2021-37840 affect aaPanel?

CVE-2021-37840 affects aaPanel versions up to and including 6.8.12, allowing Cross-Site WebSocket Hijacking (CSWH) involving OS commands within WebSocket messages at a ws:// URL for /webssh.

4

What is the severity of CVE-2021-37840?

CVE-2021-37840 has a severity rating of 8.8, which is considered high.

5

How can I mitigate the vulnerability in aaPanel?

To mitigate the vulnerability in aaPanel, update to a version higher than 6.8.12.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203