LiveActive security incident?Get immediate response
CVE Record

CVE-2017-16082: A remote code execution vulnerability was found within the pg module when the remote database or query spec...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This flaw affects vulnerable versions of the Node.js pg module. If an application runs unsafe user-supplied SQL containing a malicious column name, or queries an untrusted database returning malicious column names, code execution may occur in the application process.

Executive priority

Prioritize remediation for internet-facing or high-trust Node.js services using affected pg versions. The issue is conditional but serious because successful exploitation could execute code in the application runtime.

Technical view

CVE-2017-16082 is a CWE-94 code-injection issue in node-postgres pg. The CVE describes remote code execution triggered by specially crafted column names returned in query results or included through unsafe SQL. Affected ranges span pg versions before multiple branch fixes through 7.1.x.

Likely exposure

Exposure is most likely in Node.js applications using affected pg versions and either constructing SQL unsafely from user input or connecting to databases they do not fully trust.

Exploitation context

The source bundle does not show CISA KEV listing or confirmed active exploitation. The published scenario requires malicious column names reaching pg through unsafe query construction or untrusted database results.

Researcher notes

Evidence is limited to the CVE description, affected version ranges, and node-postgres advisory references. No CVSS vector or confirmed exploitation evidence is provided in the bundle.

Mitigation direction

  • Upgrade pg to a version outside the listed affected ranges, following node-postgres guidance.
  • Remove unsafe user-controlled SQL construction, especially where column names can be influenced.
  • Avoid querying untrusted databases from vulnerable application processes.
  • Use dependency scanning to confirm CVE-2017-16082 is no longer present.

Validation and detection

  • Check package manifests and lockfiles for pg versions in the affected ranges.
  • Identify services that execute SQL built from user-controlled input.
  • Review integrations that connect to third-party or untrusted PostgreSQL databases.
  • Confirm dependency scanner results after upgrading pg.
  • Verify tests cover database result handling for affected application paths.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

Database behavior lookup

The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2017-16082 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
HackerOnepg 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.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-94 · source CWE mapping

Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.