CVE-2024-10086 Consul Vulnerable To Reflected XSS On Content-Type Error Manipulation
Attackers can execute arbitrary scripts in user browsers via reflected XSS due to missing Content-Type headers in Consul server responses.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-10086?
CVE-2024-10086 is a medium-severity cross-site scripting vulnerability in HashiCorp Consul, published on 30 Oct 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A vulnerability was identified in Consul and Consul Enterprise such that the server response did not explicitly set a Content-Type HTTP header, allowing user-provided inputs to be misinterpreted and lead to reflected XSS.
Weakness: CWE-79
Which versions are affected by CVE-2024-10086?
4 open source packages ship an affected version, including github.com/hashicorp/consul and consul. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/hashicorp/consul Go | From 1.4.1 | 1.20.0 |
github.com/hashicorp/consul Go | From 1.4.1 | 1.20.0 |
github.com/hashicorp/consul Go | From 1.4.1 | 1.20.0 |
consul Bitnami | From 1.4.1 | 1.20.0 |
Products include Hashicorp Consul.
How do I fix CVE-2024-10086?
Upgrade github.com/hashicorp/consul to 1.20.0 or later.
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-10086 being exploited?
There is no known exploitation of CVE-2024-10086 in the wild and no public exploit code.
Other vulnerabilities in HashiCorp Consul
- CVE-2021-41805 Privilege escalation in n/a
- CVE-2021-37219 HashiCorp Consul Privilege Escalation Vulnerability
- CVE-2023-2816 Consul Envoy Extension Downsteam Proxy Configuration By Upstream Service Owner
- CVE-2024-10006 Consul L7 Intentions Vulnerable To Headers Bypass
- CVE-2024-10005 Consul L7 Intentions Vulnerable To URL Path Bypass
Sources
Also known as BIT-consul-2024-10086, DEBIAN-CVE-2024-10086, GHSA-99wr-c2px-grmh, GO-2024-3242, UBUNTU-CVE-2024-10086.