8.1

CVE-2024-27289: jackc pgx SQL Injection

CVSS: 8.1v3.1HighAnalyzed
AliasesUBUNTU-CVE-2024-27289DEBIAN-CVE-2024-27289CGA-3hc6-f39f-v3rw
Published 06-03-2024Last modified 12-06-2025

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.

Overall risk
33/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.1/10
010
High · v3.1 (CVE.org)
EPSS score
0.85%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 18

Timeline

  1. 06-03-2024
    PublishedVulnerability first disclosed.
  2. 12-06-2025
    Last 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

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

20-09-202620-10-2026
EPSS score
0.85%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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
Ubuntu1 product
  • golang-github-jackc-pgxAll versions (No fix recorded)

7 vendors · 36 products

References

11 links
Show all 11 references