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
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 by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | pg | <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
- node-postgres.com /announcements#2017-08-12-code-execution-vulnerability · x_refsource_MISC, x_transferred
- nodesecurity.io /advisories/521 · x_refsource_MISC, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2017-16082 · advisory
- github.com /advisories/GHSA-wc9v-mj63-m9g5 · advisory
- npmjs.com /advisories/521 · web
Sources
- CVE List: CVE-2017-16082
- GitHub Advisory: GHSA-wc9v-mj63-m9g5
- NVD: CVE-2017-16082
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.