9.8crit

CVE-2017-16082in critical feed

Remote Code Execution in pg

Also known as GHSA-wc9v-mj63-m9g5

Published 8 y ago · modified 4 mo ago · JSON

CVSS
9.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
10.4%
percentile 96%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

10.45% probability of exploitation in the next 30 days, higher than 96% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD2.07.5AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

EcosystemPackageAffectedFixed in
npmpg
<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
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

Affected products

  • HackerOne pg node module

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.