VYPR
High severity8.1NVD Advisory· Published Mar 6, 2024· Updated May 21, 2026

CVE-2024-27289

CVE-2024-27289

Description

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/jackc/pgxGo
< 4.18.24.18.2
github.com/jackc/pgx/v4Go
< 4.18.24.18.2

Affected products

71

Patches

Vulnerability mechanics

References

6

News mentions

0

No linked articles in our index yet.