CVE-2022-29546 OutOfMemory Exception by specifically crafted processing instruction in NekoHtml Parser
An attacker can cause a denial of service by sending crafted Processing Instruction data to the HtmlUnit NekoHtml Parser, leading to excessive heap memory consumption.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-29546?
CVE-2022-29546 is a high-severity denial of service vulnerability in n/a, published on 25 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
HtmlUnit NekoHtml Parser before 2.61.0 suffers from a denial of service vulnerability. Crafted input associated with the parsing of Processing Instruction (PI) data leads to heap memory consumption. This is similar to CVE-2022-28366 but affects a much later version of the product.
Which versions are affected by CVE-2022-29546?
2 open source packages ship an affected version, including net.sourceforge.htmlunit:neko-htmlunit. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
net.sourceforge.htmlunit:neko-htmlunit Maven | All versions | 2.61.0 |
net.sourceforge.htmlunit:neko-htmlunit Maven | All versions | 2.61.0 |
Products include Htmlunit Htmlunit.
How do I fix CVE-2022-29546?
Upgrade net.sourceforge.htmlunit:neko-htmlunit to 2.61.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-29546 being exploited?
There is no known exploitation of CVE-2022-29546 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-6jmm-mp6w-4rrg.