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.
Metrics
CVSS 3.0 9.8/10
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| HackerOne | pg 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.2 |
References
- https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerabilityExploit, Third Party Advisory
- https://nodesecurity.io/advisories/521Exploit, Third Party Advisory
- https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerabilityExploit, Third Party Advisory
- https://nodesecurity.io/advisories/521Exploit, Third Party Advisory
Timeline
- Published
- Jun 7, 2018
- Last modified
- Jun 17, 2026
- NVD status
- Modified