8.1

CVE-2024-27289: pgx SQL Injection via Line Comment Creation

Analyzed
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) vulnerability in jackc pgx. EPSS estimates a 0.85% chance of exploitation in the next 30 days, higher than 59.3% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
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 listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

59%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.85% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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