Skip to content
OpenAdvisories
High · 8.1 CVE-2020-5529 EUVD-2020-0412GHSA-5mh9-r3rr-9597

Code execution vulnerability in HtmlUnit

Published Feb 11, 2020 · Updated Oct 15, 2024 · Assigned by jpcert

Description

HtmlUnit prior to 2.37.0 contains code execution vulnerabilities. HtmlUnit initializes Rhino engine improperly, hence a malicious JavScript code can execute arbitrary Java code on the application. Moreover, when embedded in Android application, Android-specific initialization of Rhino engine is done in an improper way, hence a malicious JavaScript code can execute arbitrary Java code on the application.

Affected products

VendorProductAffectedFixed
HtmlUnit Project HtmlUnit prior to 2.37.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 9 htmlunit 2.8-2+deb9u1 DLA-2326-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS htmlunit 2.8-1ubuntu2.1 USN-4584-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS htmlunit No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven net.sourceforge.htmlunit:htmlunit < 2.37.0 2.37.0 GHSA-5mh9-r3rr-9597

Advisories 2

References