CVE-2017-16082Node-postgres Pg
Crítica 9.8 Sin autenticaciónEPSS alto
Seguir: esta CVE · Node-postgres · Node-postgres Pg Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 75
- CVSS 3.0
- 9.8
- EPSS
- 10.3% probabilidad de explotación en 30 días · percentil 96
- Requiere autenticación
- No
- Publicada
- 7 jun 2018
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-94
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Pg.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | pg |
< 2.11.2 |
2.11.2 |
npm install pg@2.11.2 |
| npm | pg |
≥ 3.0.0 < 3.6.4 |
3.6.4 |
npm install pg@3.6.4 |
| npm | pg |
≥ 4.0.0 < 4.5.7 |
4.5.7 |
npm install pg@4.5.7 |
| npm | pg |
≥ 5.0.0 < 5.2.1 |
5.2.1 |
npm install pg@5.2.1 |
| npm | pg |
≥ 6.0.0 < 6.0.5 |
6.0.5 |
npm install pg@6.0.5 |
| npm | pg |
≥ 6.1.0 < 6.1.6 |
6.1.6 |
npm install pg@6.1.6 |
| npm | pg |
≥ 6.2.0 < 6.2.5 |
6.2.5 |
npm install pg@6.2.5 |
| npm | pg |
≥ 6.3.0 < 6.3.3 |
6.3.3 |
npm install pg@6.3.3 |
| npm | pg |
≥ 6.4.0 < 6.4.2 |
6.4.2 |
npm install pg@6.4.2 |
| npm | pg |
≥ 7.0.0 < 7.0.2 |
7.0.2 |
npm install pg@7.0.2 |
| npm | pg |
≥ 7.1.0 < 7.1.2 |
7.1.2 |
npm install pg@7.1.2 |
Según OSV / GitHub Advisories (GHSA-wc9v-mj63-m9g5). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| node-postgres | pg | ≥ 2.0.0 < 2.11.2 |
| node-postgres | pg | ≥ 3.0.0 < 3.6.4 |
| node-postgres | pg | ≥ 4.0.0 < 4.5.7 |
| node-postgres | pg | > 5.0.0 < 5.2.1 |
| node-postgres | pg | ≥ 6.0.0 < 6.4.2 |
| node-postgres | pg | ≥ 7.0.0 < 7.1.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- node-postgres.com Exploit Third Party Advisory
- nodesecurity.io Exploit Third Party Advisory