
CVE catalog
CVE-2024-27304
golang-github-jackc-pgx: CVE-2024-27304
- Severity
- High · CVSS 8.1
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-github-jackc-pgx | sid | 4.18.3-2 | fixed |
| Debian | golang-github-jackc-pgx | forky | 4.18.3-2 | fixed |
| Debian | golang-github-jackc-pgx | trixie | 4.18.1-2 | fixed |
| Debian | golang-github-jackc-pgx | bookworm | 4.15.0-4 | vulnerable |
| Debian | golang-github-jackc-pgconn | sid | 1.14.3-1 | fixed |
| Debian | golang-github-jackc-pgconn | forky | 1.14.3-1 | fixed |
| Debian | golang-github-jackc-pgconn | trixie | 1.14.0-1 | vulnerable |
| Debian | golang-github-jackc-pgconn | bookworm | 1.11.0-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-jackc-pgx | source | sid | 4.18.1-2 | not yet assigned | Not reported | [1065687] |
| Debian | golang-github-jackc-pgx | source | forky | 4.18.1-2 | not yet assigned | Not reported | [1065687] |
| Debian | golang-github-jackc-pgx | source | trixie | 4.18.1-2 | not yet assigned | Not reported | [1065687] |
| Debian | golang-github-jackc-pgx | source | bookworm | (unfixed) | not yet assigned | Not reported | [1065687] |
| Debian | golang-github-jackc-pgconn | source | sid | 1.14.3-1 | not yet assigned | Not reported | [1131154] |
| Debian | golang-github-jackc-pgconn | source | forky | 1.14.3-1 | not yet assigned | Not reported | [1131154] |
| Debian | golang-github-jackc-pgconn | source | trixie | (unfixed) | not yet assigned | Not reported | [1131154] |
| Debian | golang-github-jackc-pgconn | source | bookworm | (unfixed) | not yet assigned | Not 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
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-27304]
- [https://security-tracker.debian.org/tracker/CVE-2024-27304]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-27304.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0626.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]