Skip to main content
Public proof of conceptFix available

CVE-2024-27304

A public proof of concept exists; no exploitation attested.

  • Published2024-03-06
  • Fixed in5.5.4 · 4.18.2
  • WeaknessCWE-190 · CWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-03-0619:15CVE publishedNVD
  2. 2026-10-2319:23First public proof of conceptPoC-in-GitHub

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2024-27304?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2024-27304?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · CISA-ADP · OSV
Jackc pgx
BranchAffectedFixed in
5.x≥ 5.0.0, < 5.5.45.5.4
4.18< 4.18.24.18.2
Jackc pgproto3
BranchAffectedFixed in
2.3< 2.3.32.3.3

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Fix

  1. Update Jackc pgx to 5.5.4 · 4.18.2

Advisories and patches

Detection

read 2026-10-23 19:24 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
1 repository, unverifiedroaris/CVE-2024-27304-PoC
PoC-in-GitHub

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionnone2024-03-06
  • OpenCVESSVC decisionnone—
  • CNACVSS 3.19.8read 2026-10-23
  • CNAweakness (CWE)CWE-190, CWE-89read 2026-10-23
  • FIRST EPSSEPSS score1.1 %2026-10-22
  • PoC-in-GitHubproof of concept1read 2026-10-23
  • OSVaffected packages—

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2024-03-06
Last Modified
2026-06-17
NVD status
Analyzed

Frequently asked questions

What is CVE-2024-27304?

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.

Is CVE-2024-27304 actively exploited?

Active exploitation of CVE-2024-27304 has not been confirmed. Its EPSS score was 1.1% on 2026-10-22, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-27304?

CVE-2024-27304 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running jackc/pgx? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month