CVE-2017-16082
CRITICAL 9.8CVSS 3.0Remote 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | node-postgres | pgcpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:* |
>= 2.0.0, < 2.11.2 | 2.11.2 |
| NVD | node-postgres | pgcpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:* |
>= 3.0.0, < 3.6.4 | 3.6.4 |
| NVD | node-postgres | pgcpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.5.7 | 4.5.7 |
| NVD | node-postgres | pgcpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:* |
> 5.0.0, < 5.2.1 | 5.2.1 |
| NVD | node-postgres | pgcpe:2.3:a:node-postgres:pg:*:*:*:*:*:node.js:*:* |
>= 6.0.0, < 6.4.2 | 6.4.2 |
| NVD | node-postgres | pgcpe: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
- https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability · Exploit, Third Party Advisory, WEB
- https://nodesecurity.io/advisories/521 · Exploit, Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-16082 · ADVISORY
- https://github.com/advisories/GHSA-wc9v-mj63-m9g5 · ADVISORY
- https://www.npmjs.com/advisories/521 · WEB
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)