CVE-2018-3749 Improper Input Validation in Deap

Critical 9.8 Published Updated

Attackers can modify the Object prototype via controlled input, potentially leading to arbitrary code execution or privilege escalation in applications using the deap module.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-3749?

CVE-2018-3749 is a critical code injection vulnerability in n/a, published on 3 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The utilities function in all versions < 1.0.1 of the deap node module can be tricked into modifying the prototype of Object when the attacker can control part of the structure passed to this function. This can let an attacker add or modify existing properties that will exist on all objects.

Weakness: CWE-20

Which versions are affected by CVE-2018-3749?

2 open source packages ship an affected version, including deap. It affects 1 product.

PackageAffectedFixed in
deap npmAll versions1.0.1
deap npmAll versions1.0.1

Products include Deap Project Deap.

How do I fix CVE-2018-3749?

Upgrade deap to 1.0.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-3749 being exploited?

There is no known exploitation of CVE-2018-3749 in the wild and no public exploit code.

Sources

Also known as GHSA-xg47-r67p-vhv5.

Is CVE-2018-3749 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free