cve.bz

CVE-2024-27304 jackc: SQL Injection

9.8 criticalEPSS 1.1%Fix available

Critical (9.8) in jackc. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/jackc/pgproto3 2.3.3.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-03-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-27304 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-27304?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-27304?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-27304 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jackc:pgproto3before 2.3.3
jackc:pgxbefore 4.18.2
jackc:pgxfrom 5.0.0 before 5.5.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7jwh-3vrq-q3m8Gogithub.com/jackc/pgproto3<2.3.32.3.3
GHSA-7jwh-3vrq-q3m8Gogithub.com/jackc/pgproto3/v2<2.3.32.3.3
GHSA-mrww-27vc-gghvGogithub.com/jackc/pgx<4.18.24.18.2
GHSA-mrww-27vc-gghvGogithub.com/jackc/pgx>=5.0.0 <5.5.45.5.4
GHSA-mrww-27vc-gghvGogithub.com/jackc/pgx/v4<4.18.24.18.2
GHSA-mrww-27vc-gghvGogithub.com/jackc/pgx/v5>=5.0.0 <5.5.45.5.4
GO-2024-2606Gogithub.com/jackc/pgproto3/v2<2.3.32.3.3
GO-2024-2606Gogithub.com/jackc/pgxall versionsno fix published
GO-2024-2606Gogithub.com/jackc/pgx/v4<4.18.24.18.2
GO-2024-2606Gogithub.com/jackc/pgx/v5>=5.0.0 <5.5.45.5.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-jackc-pgx, golang-github-jackc-pgconnno fix listedDEBIAN-CVE-2024-27304
Debian13golang-github-jackc-pgconnno fix listedDEBIAN-CVE-2024-27304
Debian13, 14golang-github-jackc-pgx4.18.1-2DEBIAN-CVE-2024-27304
Debian14golang-github-jackc-pgconn1.14.3-1DEBIAN-CVE-2024-27304
Ubuntu22.04:LTSgolang-github-jackc-pgxno fix listedUBUNTU-CVE-2024-27304
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 moregolang-github-jackc-pgx, golang-github-jackc-pgproto3no fix listedUBUNTU-CVE-2024-27304
Azure Linux2telegraf1.28.5-5AZL-35762
Azure Linux3telegraf1.31.0-1AZL-35752

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-central-db-rhel8:4.3.5-3Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-collector-rhel8:4.3.5-3Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-collector-slim-rhel8:4.3.5-1Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-main-rhel8:4.3.5-4Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-operator-bundle:4.3.5-4Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-rhel8-operator:4.3.5-3Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-roxctl-rhel8:4.3.5-3Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-scanner-db-rhel8:4.3.5-3Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-scanner-db-slim-rhel8:4.3.5-1Fixed 2024-03-13RHSA-2024:1321
Red Hat Advanced Cluster Security 4.3advanced-cluster-security/rhacs-scanner-rhel8:4.3.5-3Fixed 2024-03-13RHSA-2024:1321
Migration Toolkit for Applications 6mta/mta-hub-rhel9Will not fix
Migration Toolkit for Applications 6mta/mta-windup-addon-rhel9Will not fix
Multicluster Engine for Kubernetesmulticluster-engine/agent-service-rhel8Not affected
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-agent-rhel8Not affected
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-reporter-rhel8Not affected
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-search-indexer-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-search-v2-api-rhel9Not affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-central-db-rhel8Out of support scope
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Out of support scope
29 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-27304.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High
  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON