CVE-2017-16082 · hackerone
CVE-2017-16082
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 2018-06-07, last changed 2026-06-17. Weakness: CWE-94.
How to fix
Upgrade to a fixed version: pg 2.11.2, 3.6.4, 4.5.7, 5.2.1, 6.0.5, 6.1.6 (npm) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2018-06-07 | Published |
| 2018-07-24 | Package advisory GHSA-wc9v-mj63-m9g5 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 10.3% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-wc9v-mj63-m9g5 | pg (npm) | 2.11.2 |
| GHSA-wc9v-mj63-m9g5 | pg (npm) | 3.6.4 |
| GHSA-wc9v-mj63-m9g5 | pg (npm) | 4.5.7 |
| GHSA-wc9v-mj63-m9g5 | pg (npm) | 5.2.1 |
| GHSA-wc9v-mj63-m9g5 | pg (npm) | 6.0.5 |
Also known as: GHSA-wc9v-mj63-m9g5
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-105479 | 2026-12-03 | 9.3 | same weakness (CWE-94) from the same CNA (hackerone) |
| CVE-2026-133207 | 2026-11-26 | 4.1 | same weakness (CWE-94) from the same CNA (hackerone) |
| CVE-2026-108563 | 2026-11-11 | 4.7 | same weakness (CWE-94) from the same CNA (hackerone) |
| CVE-2026-64633 | 2026-08-04 | 10 | same weakness (CWE-94) from the same CNA (hackerone) |
| CVE-2026-58074 | 2026-08-04 | 8.6 | same weakness (CWE-94) from the same CNA (hackerone) |
| CVE-2026-48614 | 2026-07-06 | 9.9 | same weakness (CWE-94) from the same CNA (hackerone) |
| CVE-2026-50741 | 2026-06-26 | 8.8 | same weakness (CWE-94) from the same CNA (hackerone) |
| CVE-2026-44959 | 2026-06-23 | 8.8 | same weakness (CWE-94) from the same CNA (hackerone) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-16082, or call /api/v1/vulnerabilities/CVE-2017-16082. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.