---
cve: "CVE-2024-27289"
severity: "HIGH"
cvss: 8.1
epss: "85%"
vendor: "jackc"
kev: false
exploited: false
published: "2024-03-06 19:15:08"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-19T08:01:52+02:00"
---

# CVE-2024-27289

> 8.1 HIGH · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Hoch | good |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- 14690df4c533758df97f7cc561cb9062155045c6 (Commit)
- f94eb0e2f96782042c96801b5ac448f44f0a81df (Commit)

## Referenzen

- <https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p>
- <https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df>
- <https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2024-27289) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
