CVE-2024-31839 tiagorlampert CHAOS vulnerable to Cross Site Scripting

Medium 4.8 Published Updated

A remote attacker can escalate privileges via a Cross-Site Scripting vulnerability in the sendCommandHandler function of the CHAOS Go library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-31839?

CVE-2024-31839 is a medium-severity cross-site scripting vulnerability in n/a, published on 12 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-79

Which versions are affected by CVE-2024-31839?

3 open source packages ship an affected version, including github.com/tiagorlampert/CHAOS. It affects 1 product.

PackageAffectedFixed in
github.com/tiagorlampert/CHAOS GoAll versionsNone
github.com/tiagorlampert/CHAOS GoAll versions to 5.0.1None
github.com/tiagorlampert/CHAOS GoAll versions to 5.0.1None

Products include Tiagorlampert Chaos.

How do I fix CVE-2024-31839?

No fix has been published for CVE-2024-31839 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-31839 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31839 exists.

Public exploit code: 1 Metasploit module and 1 Nuclei template.

Sources

Also known as GHSA-c5rv-hjjc-jv7m, GO-2024-2721.

Is CVE-2024-31839 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free