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

CVE-2024-27289 is fixed in golang-github-jackc-pgx on 1 platform, first by DEBIAN-CVE-2024-27289, released March 6, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-27289
- Priority: High
- CVSS: 8.1 (high)
- EPSS: 0.0085
- 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. 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | golang-github-jackc-pgx Debian 13.5 (trixie) | 4.18.1-2 | [DEBIAN-CVE-2024-27289](https://patchblox.com/security/data/fix/linux/debian-cve-2024-27289.md) | Mar 6, 2024 |
| Linux | golang-github-jackc-pgx Debian 14 | 4.18.1-2 | [DEBIAN-CVE-2024-27289](https://patchblox.com/security/data/fix/linux/debian-cve-2024-27289.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.
