CVE catalog

CVE-2024-27304

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

[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
1.11% · Oct 25, 2026

pgx is a PostgreSQL driver and toolkit for Go. SQL injection can occur if an attacker can cause a single query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause the one large message to be sent as multiple messages under the attacker's control. The problem is resolved in v4.18.2 and v5.5.4. As a workaround, reject user input large enough to cause a single query or bind message to exceed 4 GB in size.

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
Debiangolang-github-jackc-pgconnsid1.14.3-1fixed
Debiangolang-github-jackc-pgconnforky1.14.3-1fixed
Debiangolang-github-jackc-pgconntrixie1.14.0-1vulnerable
Debiangolang-github-jackc-pgconnbookworm1.11.0-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-jackc-pgxsourcesid4.18.1-2not yet assignedNot reported[1065687]
Debiangolang-github-jackc-pgxsourceforky4.18.1-2not yet assignedNot reported[1065687]
Debiangolang-github-jackc-pgxsourcetrixie4.18.1-2not yet assignedNot reported[1065687]
Debiangolang-github-jackc-pgxsourcebookworm(unfixed)not yet assignedNot reported[1065687]
Debiangolang-github-jackc-pgconnsourcesid1.14.3-1not yet assignedNot reported[1131154]
Debiangolang-github-jackc-pgconnsourceforky1.14.3-1not yet assignedNot reported[1131154]
Debiangolang-github-jackc-pgconnsourcetrixie(unfixed)not yet assignedNot reported[1131154]
Debiangolang-github-jackc-pgconnsourcebookworm(unfixed)not yet assignedNot reported[1131154]

[Debian bug #1065687][Debian bug #1131154]

Notes

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

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References