CVE-2019-15658 SQL Injection in connect-pg-simple
An attacker can execute arbitrary SQL commands via untrusted table or schema names in the connect-pg-simple session store 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-2019-15658?
CVE-2019-15658 is a high-severity SQL injection vulnerability in n/a, published on 26 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
connect-pg-simple before 6.0.1 allows SQL injection if tableName or schemaName is untrusted data.
Weakness: CWE-89
Which versions are affected by CVE-2019-15658?
2 open source packages ship an affected version, including connect-pg-simple. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
connect-pg-simple npm | All versions | 6.0.1 |
connect-pg-simple npm | All versions | 6.0.1 |
Products include Connect-Pg-Simple Project Connect-Pg-Simple.
How do I fix CVE-2019-15658?
Upgrade connect-pg-simple to 6.0.1 or later.
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-2019-15658 being exploited?
There is no known exploitation of CVE-2019-15658 in the wild and no public exploit code.
Sources
Also known as GHSA-xqh8-5j36-4556.