cbcvebase.
CVE-2017-16082
published 2018-06-07

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…

PriorityP261critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
10.51%
95.2th percentile
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.

Affected

19 ranges
VendorProductVersion rangeFixed in
debiannode-postgres< node-postgres 7.7.1-1 (bookworm)node-postgres 7.7.1-1 (bookworm)
hackeronepg_node_module< 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.22.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
node-postgrespg< 5.2.15.2.1
node-postgrespg>= 0 < 2.11.22.11.2
node-postgrespg>= 2.0.0 < 2.11.22.11.2
node-postgrespg>= 3.0.0 < 3.6.43.6.4
node-postgrespg>= 3.0.0 < 3.6.43.6.4
node-postgrespg>= 4.0.0 < 4.5.74.5.7
node-postgrespg>= 4.0.0 < 4.5.74.5.7
node-postgrespg>= 5.0.0 < 5.2.15.2.1
node-postgrespg>= 6.0.0 < 6.4.26.4.2
node-postgrespg>= 6.0.0 < 6.0.56.0.5
node-postgrespg>= 6.1.0 < 6.1.66.1.6
node-postgrespg>= 6.2.0 < 6.2.56.2.5
node-postgrespg>= 6.3.0 < 6.3.36.3.3
node-postgrespg>= 6.4.0 < 6.4.26.4.2
node-postgrespg>= 7.0.0 < 7.1.27.1.2
node-postgrespg>= 7.0.0 < 7.0.27.0.2
node-postgrespg>= 7.1.0 < 7.1.27.1.2

Detection & IOCsextracted from sources · hover to see the quote

  • Look for PostgreSQL query results or SQL statements containing specially crafted column names that could be interpreted as code by the pg Node.js module
  • Monitor for execution of user-supplied SQL containing untrusted or unusual column names passed through the pg module
  • Alert on pg module connections to untrusted/external databases where query results with unexpected column names are returned
  • ·Vulnerability is fixed in pg module version 7.7.1-1 (Debian packages for bookworm, bullseye, forky, sid, trixie). Ensure the pg npm/Node.js module is updated to a patched version.

CVSS provenance

nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.