VDB

CVE-2024-27289

CVE-2024-27289 PUBLISHED CVSS 9.100000381469727 CRITICAL

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.

PackageEcosystemFixed in
github.com/jackc/pgx/v4Go Modules4.18.2
argo-workflowsWolfi3.5.5-r3
argo-workflows-fipsChainguard3.5.5-r2
telegraf-1.26Wolfi1.26.3-r14
trillianWolfi1.6.0-r2
trillian-fipsChainguard1.6.0-r2
telegraf-1.29Wolfi1.29.5-r4
stepWolfi0.28.6-r0
telegraf-1.28Wolfi1.28.5-r8
caddy-fipsChainguard2.7.6-r4, 2.7.6-r1
kotsChainguard1.108.1-r0
step-caWolfi0.25.2-r5

8 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
9.100000381469727
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS Score
0.85%
59.0th percentile

Affected products

VendorProductVersions
jackcpgx0
pgx_projectpgx0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›