CVE-2022-29546: OutOfMemory Exception in NekoHtml Parser

Summary

26/04/2022
Yes i
High
7.5

CVE-2022-29546: OutOfMemory Exception by specifically crafted processing instruction in NekoHtml Parser. Affects net.sourceforge.htmlunit:neko-htmlunit versions < 2.61.0. Fixed in 2.61.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The NekoHtml Parser is a library used for parsing HTML documents in Java applications. It provides functionality for processing HTML content and extracting information from it. The library is commonly used in web scraping, web testing, and other applications that require HTML parsing. However, versions 2.60.0 and below of the NekoHtml Parser are vulnerable to a denial of service attack. An attacker can exploit a specifically crafted processing instruction to cause the parser to consume excessive heap memory, leading to an OutOfMemory Exception. This vulnerability can result in the application becoming unresponsive or crashing.

Vulnerability Detail

The vulnerability in the NekoHtml Parser arises from a lack of proper input validation and handling of processing instructions. By providing a specially crafted input, an attacker can trigger the parser to consume large amounts of heap memory, leading to resource exhaustion and denial of service. The impact of this vulnerability can be severe, as it can render the affected application unresponsive or cause it to crash. The vulnerability has been assigned a CVSS score of 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

2.61.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. The only effective solution is to update the NekoHtml Parser library to a non-vulnerable version.

Conclusion

The NekoHtml Parser library is vulnerable to a denial of service attack due to improper handling of processing instructions. This can result in resource exhaustion and application crashes. To mitigate this vulnerability, it is crucial to update the library to version 2.61.0 or above. Developers should ensure that their projects are using the latest non-vulnerable version of the library. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for net.sourceforge.htmlunit:neko-htmlunit →

Share this vulnerability

FAQ

The vulnerability can lead to a denial of service condition, causing the affected application to become unresponsive or crash.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your pom.xml file and the playground will analyze it for any vulnerable dependencies.

Yes, the vulnerability can be fixed by updating the NekoHtml Parser library to version 2.61.0 or above.

Yes, this vulnerability can be exploited remotely by sending a specially crafted input to the affected application.

There are no known instances of this vulnerability being exploited in the wild at the time of writing this report.

Related vulnerabilities

Recent vulnerabilities recorded for net.sourceforge.htmlunit:neko-htmlunit.

How To Fix

Minimum fixed version

2.61.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback