SCA: security update for github.com/jackc/pgx, github.com/jackc/pgx/v4 (GHSA-m7wr-2xf7-cm9p)

high Tenable Cloud Security Plugin ID 416823

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- pgx is a PostgreSQL driver and toolkit for Go. Prior to version 4.18.2, SQL injection can occur when all
of the following conditions are met: the non-default simple protocol is used; a placeholder for a numeric
value must be immediately preceded by a minus; there must be a second placeholder for a string value after
the first placeholder; both must be on the same line; and both parameter values must be user-controlled.
The problem is resolved in v4.18.2. As a workaround, do not use the simple protocol or do not place a
minus directly before a placeholder. (CVE-2024-27289)

Solution

Update the github.com/jackc/pgx library and its related packages to version 4.18.2 or later.

See Also

https://github.com/advisories/GHSA-m7wr-2xf7-cm9p

Plugin Details

Severity: High

ID: 416823

Version: Revision 1.22

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.86

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 5.6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-27289

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 6.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/4/2024

Vulnerability Publication Date: 3/4/2024

Reference Information

CVE: CVE-2024-27289

cwe: CWE-89