9.8

CVE-2024-27304: pgx SQL Injection via Protocol Message Size Overflow

Analyzed
AliasesUBUNTU-CVE-2024-27304DEBIAN-CVE-2024-27304CGA-2frh-r4hx-jwv6
Published 06-03-2024Last modified 12-12-2024

Vulnerability summary

CVE-2024-27304 is a critical (CVSS 9.8) vulnerability in jackc pgproto3. EPSS estimates a 1.11% chance of exploitation in the next 30 days, higher than 66.9% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 9.8 (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
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.11%
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 34

Timeline

  1. 06-03-2024
    PublishedVulnerability first disclosed.
  2. 12-12-2024
    Last modifiedVulnerability information updated.

Description

pgx is a PostgreSQL driver and toolkit for Go. SQL injection can occur if an attacker can cause a single query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause the one large message to be sent as multiple messages under the attacker's control. The problem is resolved in v4.18.2 and v5.5.4. As a workaround, reject user input large enough to cause a single query or bind message to exceed 4 GB in size.

CVSS metrics

8 scores · 7 sources · 2 versions

EPSS trend

Probability

1.11%

Chance of exploitation in the next 30 days

Percentile

67%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.11% 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.

Chainguard43 products
  • amass< 4.2.0-r8
  • argo-workflows< 3.5.5-r3
  • argo-workflows-fips< 3.5.5-r2
  • caddy< 2.7.6-r4
  • caddy-fips< 2.7.6-r1
Wolfi25 products
  • amass< 4.2.0-r8
  • argo-workflows< 3.5.5-r3
  • caddy< 2.7.6-r4
  • ferretdb< 1.20.1-r3
  • k3s< 1.29.2-r3
Debian2 products
  • golang-github-jackc-pgconnAll versions (No fix recorded) | < 1.14.3-1
  • golang-github-jackc-pgxAll versions (No fix recorded) | < 4.18.1-2
Github.com/jackc2 products
  • pgproto3< 2.3.3
  • pgx< 4.18.2 | ≥ 5.0.0, < 5.5.4 | All versions (No fix recorded)
Github.com/jackc/pgx2 products
  • v4< 4.18.2
  • v5≥ 5.0.0, < 5.5.4
Jackc2 products
Ubuntu2 products
  • golang-github-jackc-pgproto3All versions (No fix recorded)
  • golang-github-jackc-pgxAll versions (No fix recorded)
Github.com/jackc/pgproto31 product
  • v2< 2.3.3

8 vendors · 79 products

References

14 links
Show all 14 references