{"id":"CVE-2024-31839","published":"2024-04-12T00:00:00Z","modified":"2024-08-02T01:59:50Z","title":"Cross Site Scripting vulnerability in tiagorlampert CHAOS v.5.0.1 allows a remote attacker to escalate privileges via…","vendor":null,"product":null,"tier":"core","eol":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-17T16:06:11.359699Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is a Cross-Site Scripting vulnerability in the tiagorlampert CHAOS v5.0.1 product, located in the sendCommandHandler function of its handler.go component. An unauthenticated remote attacker can exploit it without user interaction, using network access alone, to escalate privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:03:29Z"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.08104,"percentile":0.94954,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2025-06-04","exploitedFirstSeen":"2025-06-04","ransomware":false,"evidence":[{"url":"https://www.acronis.com/en-us/cyber-protection-center/posts/from-open-source-to-open-threat-tracking-chaos-rats-evolution/","date":"2025-06-04"},{"url":"https://securelist.com/vulnerabilities-and-exploits-in-q2-2025/117333/","date":"2025-08-27"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":3,"pulses":[{"name":"New Chaos RAT Variants Threaten Windows and Linux Systems with Stealthy Data Theft","url":"https://otx.alienvault.com/pulse/6843300336b121603e3cffad","created":"2025-06-06"},{"name":"From open-source to open threat: Tracking Chaos RAT’s evolution","url":"https://otx.alienvault.com/pulse/6842a804f3af1a6088781dff","created":"2025-06-06"},{"name":"Remote code execution (CVE-2024-30850) on CHAOS RAT v5.01 web panel via spoofed agent callbacks (CVE-2024-31839) //","url":"https://otx.alienvault.com/pulse/668e888304cfe1d71eed4ecc","created":"2024-07-10"}],"provenance":"machine"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/tiagorlampert/CHAOS","tags":[]},{"url":"https://blog.chebuya.com/posts/remote-code-execution-on-chaos-rat-via-spoofed-agents/","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/tiagorlampert/CHAOS","vulnerableRanges":["<=5.0.1","all versions"],"patched":[],"from":["GHSA-c5rv-hjjc-jv7m","GO-2024-2721"],"provenance":"source"}],"advisories":[{"id":"GHSA-c5rv-hjjc-jv7m","url":"https://github.com/advisories/GHSA-c5rv-hjjc-jv7m","severity":"MODERATE","ecosystem":"Go","package":"github.com/tiagorlampert/CHAOS","vulnerableRanges":["<=5.0.1"],"patched":[],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-1184","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1184","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"metasploit":[{"name":"Chaos RAT XSS to RCE","module":"exploit/linux/http/chaos_rat_xss_to_rce","type":"exploit","disclosureDate":"2024-04-10","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/chaos_rat_xss_to_rce.rb"}],"nuclei":[{"id":"CVE-2024-31839","name":"CHAOS 5.0.1 'sendCommandHandler' - Cross-Site Scripting","severity":"medium","path":"http/cves/2024/CVE-2024-31839.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-31839.yaml"}],"first":{"date":"2024-04-10","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/chaos_rat_xss_to_rce.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-04-10","kind":"exploit-public","label":"First public exploit: Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/chaos_rat_xss_to_rce.rb","provenance":"source"},{"date":"2024-04-12","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-31839","provenance":"source"},{"date":"2025-06-04","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.acronis.com/en-us/cyber-protection-center/posts/from-open-source-to-open-threat-tracking-chaos-rats-evolution/","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":63.7,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 535 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":18.99,"detail":"percentile 0.9495"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":3.36,"detail":"base score 4.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}