Arbitrary Code Injection Affecting node-postgres package, versions <7.7.1-1


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
23.33% (97th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN11-NODEPOSTGRES-527515
  • published7 Jun 2018
  • disclosed7 Jun 2018

Introduced: 7 Jun 2018

CVE-2017-16082  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Debian:11 node-postgres to version 7.7.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-postgres package and not the node-postgres package as distributed by Debian. See How to fix? for Debian:11 relevant fixed versions and status.

A remote code execution vulnerability was found within the pg module when the remote database or query specifies a specially crafted column name. There are 2 likely scenarios in which one would likely be vulnerable. 1) Executing unsafe, user-supplied sql which contains a malicious column name. 2) Connecting to an untrusted database and executing a query which returns results where any of the column names are malicious.