CVE & CISA-KEV Catalog

CVE-2024-27304

CRITICAL
9.8
CVSS v3
NVD

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.

How to fix

Remediation Available
golang-github-jackc-pgconnDebian
Fixed in:1.14.3-1CVE-2024-27304
advanced-cluster-security/rhacsRocky
Fixed in:collector-rhel8@sha256:4ee4e4314d7044b567c0d914a873ef19d6290136524250d71707824ab50a6771_s390xRHSA-2024:1321
Fixed in:main-rhel8@sha256:edf704674e62f8651e78e1d2b916f36a3d6cad191d3366b97b0e6b9da2c908a1_s390xRHSA-2024:1321
Fixed in:rhel8-operator@sha256:18468f5da200cfaf17e2f0c45066aa58141d63e4d622d35c06b4ca9d74812232_s390xRHSA-2024:1321
Fixed in:operator-bundle@sha256:c1e7a5e80831c5f078e1aa26e57870aec1949c148f02c255e76a7a98c01099d7_amd64RHSA-2024:1321
Fixed in:rhel8-operator@sha256:f6e627cf9449bdc8003c636db8966c0076e51f071124764f26ffb94449d9e69f_amd64RHSA-2024:1321
Fixed in:roxctl-rhel8@sha256:9a1438591ff32bcce16badc7630e5d330f7b7bd453896c79589061686f8f04a9_amd64RHSA-2024:1321
Fixed in:scanner-rhel8@sha256:136f2a4ed9ee5ebbcb9d74ab0a3eb2c65d3a2b53f9eefaae65bed7b6e11617bb_amd64RHSA-2024:1321
Fixed in:roxctl-rhel8@sha256:b1f1169ba6a7b36297db7cf495ee18d3eb32c3ee3882cdb470f13146aea056fb_s390xRHSA-2024:1321
Fixed in:operator-bundle@sha256:5f2ad23bcf5d96c9cee2789f21df29ba7a63ddabf09140cecdcc21f04ea7cfcb_s390xRHSA-2024:1321
Fixed in:scanner-rhel8@sha256:1ae645988b18f220896c3c57c45e83dfca1ba13ab531543eddd7b85bbdd41ac6_ppc64leRHSA-2024:1321
Fixed in:roxctl-rhel8@sha256:87bd0d8ae7c5f217f181df81188fff1e1c1f5c06a040a6e376fb26522a3c13d8_ppc64leRHSA-2024:1321
Fixed in:rhel8-operator@sha256:debc2bcf0938e41a61e48547d34ebecea2f5696cf4ef7c28577d4e30c52adee0_ppc64leRHSA-2024:1321
Fixed in:operator-bundle@sha256:e82ef850c57e49eab2d9b4d24e4892c23939ba0b3158bf37000f6f70c0843bd7_ppc64leRHSA-2024:1321
Fixed in:main-rhel8@sha256:362fe0f627380cbf5ead83c3e57400ca831d6d4d26ab416c17123d345de1a075_ppc64leRHSA-2024:1321
Fixed in:collector-rhel8@sha256:f2ca25a0d7ce845607c96077b896718a82f92810c90eec616b101a444180c2c4_ppc64leRHSA-2024:1321
Fixed in:scanner-rhel8@sha256:284fe7202809723ce52fc3d802927453e6c1943f79ce0761b5f86a8150324cba_s390xRHSA-2024:1321
Fixed in:collector-rhel8@sha256:5fcc7a9793106c6ee9fad1d3181dd3a418c79defd389ad2f79dac540b61ecebe_amd64RHSA-2024:1321
Fixed in:main-rhel8@sha256:a1ccf6a8ffc1d2d6a6d04528353fbb4f3f0c039b546f439885c26364d5e3d1de_amd64RHSA-2024:1321
advanced-cluster-security/rhacsRed Hat / RHEL
Fixed in:operator-bundle@sha256:c1e7a5e80831c5f078e1aa26e57870aec1949c148f02c255e76a7a98c01099d7_amd64RHSA-2024:1321
Fixed in:rhel8-operator@sha256:f6e627cf9449bdc8003c636db8966c0076e51f071124764f26ffb94449d9e69f_amd64RHSA-2024:1321
Fixed in:roxctl-rhel8@sha256:9a1438591ff32bcce16badc7630e5d330f7b7bd453896c79589061686f8f04a9_amd64RHSA-2024:1321
Fixed in:scanner-rhel8@sha256:136f2a4ed9ee5ebbcb9d74ab0a3eb2c65d3a2b53f9eefaae65bed7b6e11617bb_amd64RHSA-2024:1321
Fixed in:collector-rhel8@sha256:4ee4e4314d7044b567c0d914a873ef19d6290136524250d71707824ab50a6771_s390xRHSA-2024:1321
Fixed in:collector-rhel8@sha256:5fcc7a9793106c6ee9fad1d3181dd3a418c79defd389ad2f79dac540b61ecebe_amd64RHSA-2024:1321
Fixed in:main-rhel8@sha256:edf704674e62f8651e78e1d2b916f36a3d6cad191d3366b97b0e6b9da2c908a1_s390xRHSA-2024:1321
Fixed in:operator-bundle@sha256:5f2ad23bcf5d96c9cee2789f21df29ba7a63ddabf09140cecdcc21f04ea7cfcb_s390xRHSA-2024:1321
Fixed in:rhel8-operator@sha256:18468f5da200cfaf17e2f0c45066aa58141d63e4d622d35c06b4ca9d74812232_s390xRHSA-2024:1321
Fixed in:roxctl-rhel8@sha256:b1f1169ba6a7b36297db7cf495ee18d3eb32c3ee3882cdb470f13146aea056fb_s390xRHSA-2024:1321
Fixed in:scanner-rhel8@sha256:284fe7202809723ce52fc3d802927453e6c1943f79ce0761b5f86a8150324cba_s390xRHSA-2024:1321
Fixed in:collector-rhel8@sha256:f2ca25a0d7ce845607c96077b896718a82f92810c90eec616b101a444180c2c4_ppc64leRHSA-2024:1321
Fixed in:main-rhel8@sha256:a1ccf6a8ffc1d2d6a6d04528353fbb4f3f0c039b546f439885c26364d5e3d1de_amd64RHSA-2024:1321
Fixed in:main-rhel8@sha256:362fe0f627380cbf5ead83c3e57400ca831d6d4d26ab416c17123d345de1a075_ppc64leRHSA-2024:1321
Fixed in:operator-bundle@sha256:e82ef850c57e49eab2d9b4d24e4892c23939ba0b3158bf37000f6f70c0843bd7_ppc64leRHSA-2024:1321
Fixed in:rhel8-operator@sha256:debc2bcf0938e41a61e48547d34ebecea2f5696cf4ef7c28577d4e30c52adee0_ppc64leRHSA-2024:1321
Fixed in:roxctl-rhel8@sha256:87bd0d8ae7c5f217f181df81188fff1e1c1f5c06a040a6e376fb26522a3c13d8_ppc64leRHSA-2024:1321
Fixed in:scanner-rhel8@sha256:1ae645988b18f220896c3c57c45e83dfca1ba13ab531543eddd7b85bbdd41ac6_ppc64leRHSA-2024:1321
advanced-cluster-security/rhacs-centralRocky
Fixed in:db-rhel8@sha256:2113a95c5a4d08d51c542121ae0e7be26761a4883f371b89a84ca604c662ba34_s390xRHSA-2024:1321
Fixed in:db-rhel8@sha256:17afebb6840002a1d56b22dd943061345a1eb8997d57572f1715706a708a0a94_amd64RHSA-2024:1321
Fixed in:db-rhel8@sha256:a2bbd43de9ad33f9daa04600dd2dc7e17ff7919c09bc56ca466af2332c867876_ppc64leRHSA-2024:1321
advanced-cluster-security/rhacs-centralRed Hat / RHEL
Fixed in:db-rhel8@sha256:a2bbd43de9ad33f9daa04600dd2dc7e17ff7919c09bc56ca466af2332c867876_ppc64leRHSA-2024:1321
Fixed in:db-rhel8@sha256:17afebb6840002a1d56b22dd943061345a1eb8997d57572f1715706a708a0a94_amd64RHSA-2024:1321
Fixed in:db-rhel8@sha256:2113a95c5a4d08d51c542121ae0e7be26761a4883f371b89a84ca604c662ba34_s390xRHSA-2024:1321
advanced-cluster-security/rhacs-collectorRocky
Fixed in:slim-rhel8@sha256:23a88ee59f0c47503fa8ab6832e980121622f75abcc70734cf243299209cdd16_amd64RHSA-2024:1321
Fixed in:slim-rhel8@sha256:812df7cb4f9c976cd6869c82e0089969ff9c8492b4d9275c3dd2531e1e9beb75_s390xRHSA-2024:1321
Fixed in:slim-rhel8@sha256:2483c98f0d789d2f2b4ed9183ae38433bc5069d7ed59847a06b68f0994cadfd7_ppc64leRHSA-2024:1321
advanced-cluster-security/rhacs-collectorRed Hat / RHEL
Fixed in:slim-rhel8@sha256:23a88ee59f0c47503fa8ab6832e980121622f75abcc70734cf243299209cdd16_amd64RHSA-2024:1321
Fixed in:slim-rhel8@sha256:812df7cb4f9c976cd6869c82e0089969ff9c8492b4d9275c3dd2531e1e9beb75_s390xRHSA-2024:1321
Fixed in:slim-rhel8@sha256:2483c98f0d789d2f2b4ed9183ae38433bc5069d7ed59847a06b68f0994cadfd7_ppc64leRHSA-2024:1321
advanced-cluster-security/rhacs-scannerRocky
Fixed in:slim-rhel8@sha256:be0cf8eec9290414cd532be40f1916e977dbd82625ee09f7d45b48172221f6b3_amd64RHSA-2024:1321
Fixed in:db-rhel8@sha256:eec6502d809be469d4b0b310ef1fed9fe9c59ea3ecc6583ab8893b58814f5a9d_amd64RHSA-2024:1321
Fixed in:db-rhel8@sha256:a3f2bc6b6e06314238a9e030c9bc9b640c0ad71709030863ddebcfe7bf12ea1d_s390xRHSA-2024:1321
Fixed in:slim-rhel8@sha256:0fd9c60d08bc078d18bf15243d13e284fc6e794187240a9414d3afde69a43c0f_s390xRHSA-2024:1321
Fixed in:db-rhel8@sha256:aa05620232be93fea76d2ca7aa3be5d0db4153cad4e718ab4ed91b8964d52dde_ppc64leRHSA-2024:1321
Fixed in:slim-rhel8@sha256:f0d9e9e8c32dd905e2304dfb686114b3430b6babc88f2abaafd7569403870f52_ppc64leRHSA-2024:1321
advanced-cluster-security/rhacs-scannerRed Hat / RHEL
Fixed in:slim-rhel8@sha256:f0d9e9e8c32dd905e2304dfb686114b3430b6babc88f2abaafd7569403870f52_ppc64leRHSA-2024:1321
Fixed in:db-rhel8@sha256:aa05620232be93fea76d2ca7aa3be5d0db4153cad4e718ab4ed91b8964d52dde_ppc64leRHSA-2024:1321
Fixed in:slim-rhel8@sha256:0fd9c60d08bc078d18bf15243d13e284fc6e794187240a9414d3afde69a43c0f_s390xRHSA-2024:1321
Fixed in:db-rhel8@sha256:a3f2bc6b6e06314238a9e030c9bc9b640c0ad71709030863ddebcfe7bf12ea1d_s390xRHSA-2024:1321
Fixed in:slim-rhel8@sha256:be0cf8eec9290414cd532be40f1916e977dbd82625ee09f7d45b48172221f6b3_amd64RHSA-2024:1321
Fixed in:db-rhel8@sha256:eec6502d809be469d4b0b310ef1fed9fe9c59ea3ecc6583ab8893b58814f5a9d_amd64RHSA-2024:1321
advanced-cluster-security/rhacs-scanner-dbRocky
Fixed in:slim-rhel8@sha256:605af3ee40fa2a179c369cff28563908cf3b420651c7aef8eef3837977299903_amd64RHSA-2024:1321
Fixed in:slim-rhel8@sha256:fa03464d54bf4d31623faae0566b2553f42680b60b4e803d175f898048087bcb_s390xRHSA-2024:1321
Fixed in:slim-rhel8@sha256:82609a23ba6e2b6c819daaddb330c3e1b7ff0f5e16630ebb6e3db0a9af236f88_ppc64leRHSA-2024:1321
advanced-cluster-security/rhacs-scanner-dbRed Hat / RHEL
Fixed in:slim-rhel8@sha256:605af3ee40fa2a179c369cff28563908cf3b420651c7aef8eef3837977299903_amd64RHSA-2024:1321
Fixed in:slim-rhel8@sha256:82609a23ba6e2b6c819daaddb330c3e1b7ff0f5e16630ebb6e3db0a9af236f88_ppc64leRHSA-2024:1321
Fixed in:slim-rhel8@sha256:fa03464d54bf4d31623faae0566b2553f42680b60b4e803d175f898048087bcb_s390xRHSA-2024:1321

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.11%probability of exploitation in 30 days
62ndpercentile

Moderate risk: more likely to be exploited than 62% of all known CVEs.

References

Related Vulnerabilities

Other CWE-89 (SQL Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2014-3704High7.5100%-Fix
CVE-2015-7297High7.5100%--
CVE-2024-29824High8.8100%KEVFix
CVE-2023-34362Critical9.8100%KEV + RansomFix
CVE-2019-7481High7.5100%KEV + RansomFix
CVE-2024-29826High8.8100%-Fix
Embed a live status badge for CVE-2024-27304
CVE-2024-27304 severity badge

Markdown

[![CVE-2024-27304](https://tridentstack.com/cve/badge/CVE-2024-27304.svg)](https://tridentstack.com/cve/CVE-2024-27304)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-27304"><img src="https://tridentstack.com/cve/badge/CVE-2024-27304.svg" alt="CVE-2024-27304"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-21.