# CVE-2021-37840: aaPanel through 6.8.12 allows Cross-Site WebSocket Hijacking (CSWH) involving OS commands within WebSocket messages at a ws:// URL for /web…

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.67%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-08-02T13:53:57.000Z
- Modified: 2026-06-17T04:01:11.150Z
- Assigned by: mitre

## Description

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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- aapanel aapanel: up to 6.8.12

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/aaPanel/aaPanel/issues/74> (exploit, third-party-advisory)
- <https://ssd-disclosure.com/ssd-advisory-aapanel-cswh-to-rce/> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-37840](https://www.cve.org/CVERecord?id=CVE-2021-37840), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-37840](https://nvd.nist.gov/vuln/detail/CVE-2021-37840), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-37840 · Whole record: https://cve.day/CVE-2021-37840.json · Rebuilt by cve.day 2026-11-25T22:58:02.922Z
