{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2017-16082","id":"CVE-2017-16082","title":"Remote Code Execution in pg","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 colum","descriptionLong":"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-07T02:00:00.000Z","updated":"2026-06-17T01:08:46.077Z","reserved":"2017-10-29T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"hackerone","metric":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":["HackerOne pg node module"],"affectedProducts":[{"vendor":"HackerOne","product":"pg node module","defaultStatus":null,"versions":[{"status":"affected","version":"< 2.11.2 || >= 3.0.0 < 3.6.4 || >= 4.0.0 < 4.5.7 || >= 5.0.0 < 5.2.1 || >= 6.0.0 < 6.0.5 || >= 6.1.0 < 6.1.6 || >= 6.2.0 < 6.2.5 || >= 6.3.0 < 6.3.3 || >= 6.4.0 < 6.4.2 || >= 7.0.0 < 7.0.2 || >= 7.1.0 < 7.1.2"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"pg","purl":"pkg:npm/pg","ranges":["<2.11.2",">=3.0.0 <3.6.4",">=4.0.0 <4.5.7",">=5.0.0 <5.2.1",">=6.0.0 <6.0.5",">=6.1.0 <6.1.6",">=6.2.0 <6.2.5",">=6.3.0 <6.3.3",">=6.4.0 <6.4.2",">=7.0.0 <7.0.2",">=7.1.0 <7.1.2"],"fixed":["2.11.2","3.6.4","4.5.7","5.2.1","6.0.5","6.1.6","6.2.5","6.3.3","6.4.2","7.0.2","7.1.2"],"advisory":"GHSA-wc9v-mj63-m9g5"}],"cwes":["CWE-94"],"aliases":["GHSA-wc9v-mj63-m9g5"],"references":[{"url":"https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nodesecurity.io/advisories/521","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16082","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wc9v-mj63-m9g5","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/521","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.10259,"epssPercentile":0.9578,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2017-16082","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16082","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2017-16082","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wc9v-mj63-m9g5","ok":true,"note":"GHSA-wc9v-mj63-m9g5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2017-16082","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["EPSS 10% with CVSS 9.8"],"attention":null}