CVE-2024-27289: jackc pgx SQL Injection
Vulnerability summary
CVE-2024-27289 is a high (CVSS 8.1) SQL Injection vulnerability in jackc pgx. EPSS estimates a 0.85% chance of exploitation in the next 30 days, higher than 57.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 18Timeline
- 06-03-2024PublishedVulnerability first disclosed.
- 12-06-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · GoEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.85%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
0.00 pp
From 0.85% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard19 products
- argo-workflows< 3.5.5-r3
- argo-workflows-fips< 3.5.5-r2
- caddy< 2.7.6-r4
- caddy-fips< 2.7.6-r1
- caddy-man< 2.7.6-r4
Wolfi12 products
- argo-workflows< 3.5.5-r3
- caddy< 2.7.6-r4
- caddy-man< 2.7.6-r4
- caddy-src< 2.7.6-r4
- kots< 1.108.1-r0
Debian1 product
- golang-github-jackc-pgxAll versions (No fix recorded) | < 4.18.1-2
Github.com/jackc1 product
- pgx< 4.18.2 | All versions (No fix recorded)
Github.com/jackc/pgx1 product
- v4< 4.18.2
Jackc1 product
- pgx< 4.18.2
Ubuntu1 product
- golang-github-jackc-pgxAll versions (No fix recorded)
7 vendors · 36 products
References
11 links- github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9pX Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81dfX Refsource MISCREPORTFIXWEBPatch
- www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/ARTICLEThird Party Advisory
- github.com/jackc/pgxPACKAGE