GHSA-wc9v-mj63-m9g5
- Severity
- Critical
- CVSS
- 9.8 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA KEV
- Not in the cached KEV catalog
- EPSS
- No cached EPSS score
Affected and fixed versions
- Introduced 0 · fixed in 2.11.2
- Introduced 3.0.0 · fixed in 3.6.4
- Introduced 4.0.0 · fixed in 4.5.7
- Introduced 5.0.0 · fixed in 5.2.1
- Introduced 6.0.0 · fixed in 6.0.5
- Introduced 6.1.0 · fixed in 6.1.6
- Introduced 6.2.0 · fixed in 6.2.5
- Introduced 6.3.0 · fixed in 6.3.3
The latest published version is not inside an affected range, or OSV lists no fix for it.
Plain-language text is shown only when it is already cached. This page does not generate it.
Remote Code Execution in pg
Affected versions of `pg` contain a remote code execution vulnerability that occurs when the remote database or query specifies a crafted column name. There are two specific scenarios in which it is likely for an application to be vulnerable: 1. The application executes unsafe, user-supplied sql which contains malicious column names. 2. The application connects to an untrusted database and executes a query returning results which contain a malicious column name. ## Proof of Concept ``` const { Client } = require('pg') const client = new Client() client.connect() const sql = `SELECT 1 AS "\\'/*", 2 AS "\\'*/\n + console.log(process.env)] = null;\n//"` client.query(sql, (err, res) => {…
Aliases: CVE-2017-16082
Advisory on OSV.dev · published 2018-07-24 · modified 2023-11-08