Security mailing lists by PureSourceCode

CVE-2017-16082

CRITICAL 9.8CVSS 3.0

Remote Code Execution in pg

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.

Published
7 Jun 2018
Last modified
17 Jun 2026
Assigned by
support@hackerone.com
NVD status
Modified
Weakness
CWE-94
Also known as
GHSA-wc9v-mj63-m9g5
Sources
NVDJSONOSV GHSA-wc9v-mj63-m9g5JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD node-postgres pg
cpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:*
>= 2.0.0, < 2.11.2 2.11.2
NVD node-postgres pg
cpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:*
>= 3.0.0, < 3.6.4 3.6.4
NVD node-postgres pg
cpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:*
>= 4.0.0, < 4.5.7 4.5.7
NVD node-postgres pg
cpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:*
> 5.0.0, < 5.2.1 5.2.1
NVD node-postgres pg
cpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:*
>= 6.0.0, < 6.4.2 6.4.2
NVD node-postgres pg
cpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:*
>= 7.0.0, < 7.1.2 7.1.2
OSV npm pg < 2.11.2 2.11.2
OSV npm pg >= 3.0.0, < 3.6.4 3.6.4
OSV npm pg >= 4.0.0, < 4.5.7 4.5.7
OSV npm pg >= 5.0.0, < 5.2.1 5.2.1
OSV npm pg >= 6.0.0, < 6.0.5 6.0.5
OSV npm pg >= 6.1.0, < 6.1.6 6.1.6
OSV npm pg >= 6.2.0, < 6.2.5 6.2.5
OSV npm pg >= 6.3.0, < 6.3.3 6.3.3
OSV npm pg >= 6.4.0, < 6.4.2 6.4.2
OSV npm pg >= 7.0.0, < 7.0.2 7.0.2
OSV npm pg >= 7.1.0, < 7.1.2 7.1.2

References

History

  • 25 Nov 2026 20:21 UTC · NVD: first stored (published 7 Jun 2018)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Jul 2018)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.