Loading...
Skip to main content

CVE-2024-27304 — Vulnerability in github.com/jackc/pgproto3 — CVE...

HIGH

pgproto3 SQL Injection via Protocol Message Size Overflow

Published March 4, 2024Updated September 10, 2026Source: osv

Summary

### Impact 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. ### Patches The problem is resolved in v2.3.3 ### Workarounds Reject user input large enough to cause a single query or bind message to exceed 4 GB in size.

Advisory Timeline

  • First published March 4, 2024 (952 days ago).
  • Last revised September 10, 2026 — 919 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/jackc/pgproto3 to 2.3.3 or later
go get github.com/jackc/pgproto3@v2.3.3
Go
Update github.com/jackc/pgproto3/v2 to 2.3.3 or later
go get github.com/jackc/pgproto3/v2@v2.3.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: go (2).

PackageEcosystemAffectedFixed In
github.com/jackc/pgproto3
go
All versions2.3.3
github.com/jackc/pgproto3/v2
go
All versions2.3.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2024-27304?
pgproto3 SQL Injection via Protocol Message Size Overflow This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2024-27304?
CVE-2024-27304 affects github.com/jackc/pgproto3 and github.com/jackc/pgproto3/v2. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-27304 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-7jwh-3vrq-q3m8
GHSA-mrww-27vc-gghv
GO-2024-2606

Related CVEs

  • CVE-2026-33816
    CRITICAL

    Memory-safety vulnerability in github.com/jackc/pgx/v5.

  • CVE-2026-33815
    CRITICAL

    pgx contains memory-safety vulnerability

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2026-107813
    HIGH

    Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies