CVE-2023-49093 HtmlUnit vulnerable to Remote Code Execution (RCE) via XSTL
Attackers can execute arbitrary code by tricking users into visiting a malicious webpage using the HtmlUnit library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-49093?
CVE-2023-49093 is a critical code injection vulnerability in htmlunit, published on 4 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
HtmlUnit is a GUI-less browser for Java programs. HtmlUnit is vulnerable to Remote Code Execution (RCE) via XSTL, when browsing the attacker’s webpage. This vulnerability has been patched in version 3.9.0
Weakness: CWE-94
Which versions are affected by CVE-2023-49093?
2 open source packages ship an affected version, including org.htmlunit:htmlunit. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.htmlunit:htmlunit Maven | All versions | 3.9.0 |
org.htmlunit:htmlunit Maven | All versions | 3.9.0 |
Products include Htmlunit Htmlunit.
How do I fix CVE-2023-49093?
Upgrade org.htmlunit:htmlunit to 3.9.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-49093 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-49093 exists.
Other vulnerabilities in htmlunit
Sources
Also known as GHSA-37vq-hr2f-g7h7, UBUNTU-CVE-2023-49093.