SCA: security update for github.com/jackc/pgx, github.com/jackc/pgx/v4, github.com/jackc/pgx/v5 (GHSA-mrww-27vc-gghv)

critical Tenable Cloud Security Plugin ID 417126

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. SQL injection can occur if an attacker can cause a single
query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause
the one large message to be sent as multiple messages under the attacker's control. The problem is
resolved in v4.18.2 and v5.5.4. As a workaround, reject user input large enough to cause a single query or
bind message to exceed 4 GB in size. (CVE-2024-27304)

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-mrww-27vc-gghv

Plugin Details

Severity: Critical

ID: 417126

Version: Revision 1.9

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.88

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

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

CVSS Score Source: CVE-2024-27304

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

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

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8.9

Threat Vector: CVSS:4.0/E:P

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/4/2024

Vulnerability Publication Date: 3/4/2024

Reference Information

CVE: CVE-2024-27304