CVE-2024-27289
pgx SQL Injection via Line Comment Creation
Record from NVD · Published March 4, 2024
github.com/jackc/pgx/v4 is fixed in 4.18.2 (Go Modules)
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.
EPSS 0.85% · 59.0th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/jackc/pgx/v4 | Go Modules | 4.18.2 |
| argo-workflows | Wolfi | 3.5.5-r3 |
| argo-workflows-fips | Chainguard | 3.5.5-r2 |
| telegraf-1.26 | Wolfi | 1.26.3-r14 |
| trillian | Wolfi | 1.6.0-r2 |
| trillian-fips | Chainguard | 1.6.0-r2 |
| telegraf-1.29 | Wolfi | 1.29.5-r4 |
| step | Wolfi | 0.28.6-r0 |
| telegraf-1.28 | Wolfi | 1.28.5-r8 |
| caddy-fips | Chainguard | 2.7.6-r4, 2.7.6-r1 |
| kots | Chainguard | 1.108.1-r0 |
| step-ca | Wolfi | 0.25.2-r5 |
8 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| jackc | pgx | 0 |
| pgx_project | pgx | 0 |
Timeline
- Mar 4, 2024 CVE Published
- Mar 7, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
- Oct 16, 2024 CVE Updated
- Jan 15, 2026 Security Advisory (4 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-27289
vulnetix vdb fixes CVE-2024-27289
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27289/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart