SQL Injection in Jackc Pgx
CVE-2024-27289
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.008 (56.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 57th percentile — 56.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.008 · change: -0.000
Affected products
- Jackc Pgx — versions < 4.18.2
Weakness classification (CWE)
References
- github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p (Vendor Advisory)
- github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df (Patch)
- af854a3a-2127-422b-91ae-364da2661108 (Third Party Advisory)
Frequently asked questions
- What is CVE-2024-27289?
- CVE-2024-27289 is a high-severity vulnerability in Jackc Pgx, classified under SQL Injection. CVSS score: 8.1/10. Published 2024-03-06.
- How severe is CVE-2024-27289?
- High severity. CVSS v3 base score is 8.1 out of 10.