Quick answers
- Is CVE-2016-7564 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2016-7564 being exploited in the wild.
- How severe is CVE-2016-7564?
- High severity, with a CVSS score of 7.5, published 18 January 2017.
- Which products and versions are affected?
- Artifex Software MuJS versions prior to commit a3a4fe8.
- Is there a fix for CVE-2016-7564?
- A patch was published on 2016-09-20: Fixed in MuJS source repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2016-7564 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2016-7564?
- 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
A heap-based buffer overflow exists in the Fp_toString function within jsfunction.c of the MuJS library. The vulnerability is caused by an off-by-one error where the code fails to allocate sufficient memory for the terminating null byte when calculating the string length for a function's representation. An attacker can trigger this overflow by providing crafted input that populates function names or parameters in a specific way, leading to a memory corruption (WRITE of size 1) and a subsequent crash. The issue was fixed in commit a3a4fe840b80706c706e86160352af5936f292d8.
Affected products
- Artifex Software MuJS versions prior to commit a3a4fe8
Timeline
- 2016-09-20: disclosed: Vulnerability discovered and reported by Shi Ji
- 2016-09-20: patched: Fixed in MuJS source repository
- 2017-01-18: advisory: NVD publication date