CVE-2018-3754 SQL Injection in query-mysql
Attackers can execute arbitrary SQL queries via unsanitized input in the query-mysql Node.js module, potentially reading or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2018-3754?
CVE-2018-3754 is a high-severity SQL injection vulnerability in n/a, published on 3 Jul 2018. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Node.js third-party module query-mysql versions 0.0.0, 0.0.1, and 0.0.2 are vulnerable to an SQL injection vulnerability due to lack of user input sanitization. This may allow an attacker to run arbitrary SQL queries when fetching data from database.
Weakness: CWE-89
Which versions are affected by CVE-2018-3754?
2 open source packages ship an affected version, including query-mysql. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
query-mysql npm | All versions to 0.0.2 | None |
query-mysql npm | All versions to 0.0.2 | None |
Products include Query-Mysql Project Query-Mysql.
How do I fix CVE-2018-3754?
No fix has been published for CVE-2018-3754 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2018-3754 being exploited?
There is no known exploitation of CVE-2018-3754 in the wild and no public exploit code.
Sources
Also known as GHSA-9mr8-6prp-gwjv.