Quick answers
- Is CVE-2017-5627 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2017-5627 being exploited in the wild.
- How severe is CVE-2017-5627?
- High severity, with a CVSS score of 7.8, published 30 January 2017.
- Which products and versions are affected?
- Artifex Software, Inc. MuJS before commit 4006739a28367c708dea19aeb19b8a1a9326ce08.
- Is there a fix for CVE-2017-5627?
- A patch was published on 2017-01-24: Fixed in commit 4006739a28367c708dea19aeb19b8a1a9326ce08 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2017-5627 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2017-5627?
- Check whether you run Artifex Mujs. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
An integer overflow vulnerability exists in Artifex Software MuJS before commit 4006739a28367c708dea19aeb19b8a1a9326ce08. The root cause is located in the jsR_setproperty function within jsrun.c, which fails to validate that an array length is positive. When a specially crafted JavaScript file with a negative array length is parsed, it triggers an integer overflow in the js_pushstring function. This leads to an invalid memory read (segmentation fault) during string operations like strlen. An attacker can exploit this by tricking a user or automated system into processing a malicious JS file, potentially leading to arbitrary code execution or a denial-of-service (DoS) condition. The issue was fixed by ensuring array lengths are strictly positive.
Affected products
- Artifex Software, Inc. MuJS before commit 4006739a28367c708dea19aeb19b8a1a9326ce08
Timeline
- 2017-01-23: disclosed: Bug reported to Ghostscript Bugzilla
- 2017-01-24: patched: Fixed in commit 4006739a28367c708dea19aeb19b8a1a9326ce08
- 2017-01-30: advisory: NVD publication date