Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pg
  4. ›
  5. CVE-2017-16082

CVE-2017-16082: Code Injection

June 7, 2018 (updated October 9, 2019)

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.

References

  • nvd.nist.gov/vuln/detail/CVE-2017-16082

Code Behaviors & Features

Detect and mitigate CVE-2017-16082 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.11.2, all versions starting from 3.0.0 before 3.6.4, all versions starting from 4.0.0 before 4.5.7, all versions after 5.0.0 before 5.2.1, all versions starting from 6.0.0 before 6.4.2, all versions starting from 7.0.0 before 7.1.2

Fixed versions

  • 2.11.2
  • 3.6.4
  • 4.5.7
  • 5.2.1
  • 6.4.2
  • 7.1.2

Solution

Upgrade to versions 2.11.2, 3.6.4, 4.5.7, 5.2.1, 6.4.2, 7.1.2 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/pg/CVE-2017-16082.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.