CVE-2024-27304 – github.com/jackc/pgx/v5
Package
Manager: go
Name: github.com/jackc/pgx/v5
Vulnerable Version: >=5.0.0 <5.5.4
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: 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/E:U
EPSS: 0.00286 pctl0.51649
Details
pgx SQL Injection via Protocol Message Size Overflow ### Impact 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. ### Patches The problem is resolved in v4.18.2 and v5.5.4. ### Workarounds Reject user input large enough to cause a single query or bind message to exceed 4 GB in size.
Metadata
Created: 2024-03-04T20:43:24Z
Modified: 2024-12-12T22:30:36Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-mrww-27vc-gghv/GHSA-mrww-27vc-gghv.json
CWE IDs: ["CWE-190", "CWE-89"]
Alternative ID: GHSA-mrww-27vc-gghv
Finding: F297
Auto approve: 1