{"cve":"CVE-2017-16082","nvd":{"published":"2018-06-07T02:29:01.393","modified":"2026-06-17T01:08:46.077","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability","https://nodesecurity.io/advisories/521","https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability","https://nodesecurity.io/advisories/521"],"products":["node-postgres:pg"],"source":"nvd","synced_at":"2026-10-19T20:50:40.212176939+00:00"},"epss":{"cve":"CVE-2017-16082","score":0.1045,"percentile":0.95746,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wc9v-mj63-m9g5","url":"https://osv.dev/vulnerability/GHSA-wc9v-mj63-m9g5","summary":"Remote Code Execution in pg","modified":"2023-11-08T03:59:03.759366Z","packages":[{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":["<2.11.2"],"fixed":["2.11.2"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=3.0.0 <3.6.4"],"fixed":["3.6.4"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=4.0.0 <4.5.7"],"fixed":["4.5.7"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=5.0.0 <5.2.1"],"fixed":["5.2.1"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=6.0.0 <6.0.5"],"fixed":["6.0.5"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=6.1.0 <6.1.6"],"fixed":["6.1.6"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=6.2.0 <6.2.5"],"fixed":["6.2.5"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=6.3.0 <6.3.3"],"fixed":["6.3.3"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=6.4.0 <6.4.2"],"fixed":["6.4.2"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=7.0.0 <7.0.2"],"fixed":["7.0.2"]},{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":[">=7.1.0 <7.1.2"],"fixed":["7.1.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}