PT-2024-2157

CVE-2024-27289

·

Published

2024-03-04

·

Updated

2026-09-18

Description by

CVSS 4.0
8.7
High
MetricsAV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions pgx versions prior to 4.18.2
Description The issue is related to SQL injection in the pgx PostgreSQL driver and toolkit for Go. It occurs when the non-default simple protocol is used, a placeholder for a numeric value is immediately preceded by a minus, there is a second placeholder for a string value after the first placeholder on the same line, and both parameter values are user-controlled. This allows an attacker to execute arbitrary SQL queries.
Recommendations As a temporary workaround, do not use the simple protocol or do not place a minus directly before a placeholder. For versions prior to 4.18.2, update to version 4.18.2 to resolve the issue.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-M7WR-2XF7-CM9P
ALSA-2025_16880
ALT-PU-2024-12202
ALT-PU-2024-12410
ALT-PU-2024-9408
ALT-PU-2024-9897
AZL-35750
AZL-35763
CLEANSTART-2026-DM54086
GO-2024-2605
Found an issue in the description? Have something to add? Feel free to write us 👾