Skip to content

Code execution vulnerability in HtmlUnit

High severity GitHub Reviewed Published May 21, 2020 to the GitHub Advisory Database • Updated Dec 7, 2023

Package

maven net.sourceforge.htmlunit:htmlunit (Maven)

Affected versions

< 2.37.0

Patched versions

2.37.0

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.

References

Published by the National Vulnerability Database Feb 11, 2020
Reviewed May 21, 2020
Published to the GitHub Advisory Database May 21, 2020
Last updated Dec 7, 2023

Severity

High
8.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2020-5529

GHSA ID

GHSA-5mh9-r3rr-9597

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.