Skip to main content
VulnerabilityPublished Updated

CVE-2024-27304: Golang github jackc pgx · pgx is a PostgreSQL driver and toolkit for Go

Affects golang-github-jackc-pgxSource GCVE Database

0
Compare

Not known to be exploited · CVSS 9.8 Critical · fixed in 4.18.2 : patch golang-github-jackc-pgx as a priority.

Data as of 24 Nov 2026, 19:26 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 4.18.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Mar 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10golang-github-jackc-pgproto3pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=stonkingOther threatsAffected
  • =2.3.2-1
  • =2.3.3-2
Fixed in–
Ubuntu 26.10golang-github-jackc-pgxpkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=stonkingOther threatsAffected
  • =4.18.1-2
  • =4.18.3-2
Fixed in–
Ubuntu 26.04 LTSgolang-github-jackc-pgproto3pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=resoluteOther threatsAffected
  • =2.3.2-1
Fixed in–
Ubuntu 26.04 LTSgolang-github-jackc-pgxpkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=resoluteOther threatsAffected
  • =4.18.1-2
Fixed in–
Ubuntu 25.10golang-github-jackc-pgproto3pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=questingOther threatsAffected
  • =2.3.2-1
Fixed in–
Ubuntu 25.10golang-github-jackc-pgxpkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=questingOther threatsAffected
  • =4.18.1-1
  • =4.18.1-2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…