PT-2024-2157
CVE-2024-27289
·
Published
2024-03-04
·
Updated
2026-09-18
Description by
CVSS 4.0
8.7
HighMetricsAV: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
Found an issue in the description? Have something to add? Feel free to write us 👾