Integer Overflow or Wraparound Affecting mujs package, versions [,1.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MUJS-2364128
  • published26 Jan 2022
  • disclosed30 Jan 2017
  • creditUnknown

Introduced: 30 Jan 2017

CVE-2017-5627  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade mujs to version 1.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. An issue was discovered in Artifex Software, Inc. MuJS before 4006739a28367c708dea19aeb19b8a1a9326ce08. The jsR_setproperty function in jsrun.c lacks a check for a negative array length. This leads to an integer overflow in the js_pushstring function in jsrun.c when parsing a specially crafted JS file.

CVSS Scores

version 3.1