# CVE-2024-27304: golang-github-jackc-pgconn: pgx is a PostgreSQL driver and toolkit for Go

CVE-2024-27304 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2024-27304, released March 6, 2024. It is not reported as exploited. Patch Radar priority: Urgent.

- Web page: https://patchblox.com/security/cve/CVE-2024-27304
- Priority: Urgent
- CVSS: 9.8 (critical)
- EPSS: 0.0111
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 6, 2024

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | golang-github-jackc-pgconn Debian 14 | 1.14.3-1 | [DEBIAN-CVE-2024-27304](https://patchblox.com/security/data/fix/linux/debian-cve-2024-27304.md) | Mar 6, 2024 |
| Linux | golang-github-jackc-pgx Debian 13.5 (trixie) | 4.18.1-2 | [DEBIAN-CVE-2024-27304](https://patchblox.com/security/data/fix/linux/debian-cve-2024-27304.md) | Mar 6, 2024 |
| Linux | golang-github-jackc-pgx Debian 14 | 4.18.1-2 | [DEBIAN-CVE-2024-27304](https://patchblox.com/security/data/fix/linux/debian-cve-2024-27304.md) | Mar 6, 2024 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
