CVE-2024-27289

high
Published 2024-03-06 · Modified 2026-02-04
CVSS v3
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2
VIR risk
8.1

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.

Predictions

Exploit likelihood
88%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-27289

vendor Authored 2026-05-27

Vendor advisory: security-advisories@github.com — https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p

vendor Authored 2026-05-27

Vendor advisory: security-advisories@github.com — https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df

OS impact

OSVersionStatusFixed in
debian debianbookwormaffected
debian debianbullseyeaffected
debian debianforkyfixed4.18.1-2
debian debiansidfixed4.18.1-2
debian debiantrixiefixed4.18.1-2

Package impact

EcosystemPackageVulnerableFixed
golang Gogithub.com/jackc/pgx<4.18.24.18.2
golang Gogithub.com/jackc/pgx/v4<4.18.24.18.2
golang Gogithub.com/jackc/pgx

Application impact

VendorProductVersionsFixed
jackcpgx{"endExcluding":"4.18.2"}4.18.2

References

CWEs

CWE-89

Verify integrity in audit chain (admin only). AS-IS.