CVE-2017-1001003 Arbitrary Code Execution in mathjs
Attackers can execute arbitrary code by replacing private properties using unicode characters in object creation within the math.js library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-1001003?
CVE-2017-1001003 is a critical code injection vulnerability in math.js, published on 27 Nov 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
math.js before 3.17.0 had an issue where private properties such as a constructor could be replaced by using unicode characters when creating an object.
Which versions are affected by CVE-2017-1001003?
2 open source packages ship an affected version, including mathjs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mathjs npm | All versions | 3.17.0 |
mathjs npm | All versions | 3.17.0 |
Products include Mathjs Project Mathjs.
How do I fix CVE-2017-1001003?
Upgrade mathjs to 3.17.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2017-1001003 being exploited?
There is no known exploitation of CVE-2017-1001003 in the wild and no public exploit code.
Sources
Also known as GHSA-pv8x-p9hq-j328.