CVE catalog

CVE-2024-27289

golang-github-jackc-pgx: CVE-2024-27289

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.85% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-github-jackc-pgxsid4.18.3-2fixed
Debiangolang-github-jackc-pgxforky4.18.3-2fixed
Debiangolang-github-jackc-pgxtrixie4.18.1-2fixed
Debiangolang-github-jackc-pgxbookworm4.15.0-4vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-jackc-pgxsourcesid4.18.1-2not yet assignedNot reported[1065686]
Debiangolang-github-jackc-pgxsourceforky4.18.1-2not yet assignedNot reported[1065686]
Debiangolang-github-jackc-pgxsourcetrixie4.18.1-2not yet assignedNot reported[1065686]
Debiangolang-github-jackc-pgxsourcebookworm(unfixed)not yet assignedNot reported[1065686]

[Debian bug #1065686]

Notes

[bookworm] golang-github-jackc-pgx: Minor issue

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References