CVE-2026-32286

Denial of service in github.com/jackc/pgproto3/v2

Published Mar 26, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
The DataRow.Decode function fails to properly validate field lengths. A malicious or compromised PostgreSQL server can send a DataRow message with a negative field length, causing a slice bounds out of range panic.

Analysis

AI-generated

Technical impact

The vulnerability lies in the DataRow.Decode function of the pgproto3 library. It fails to validate field lengths, allowing a malicious PostgreSQL server to send a DataRow message with a negative field length. The library does not check this value, causing a slice bounds error that triggers a panic and crashes the consuming application. This results in a denial of service for the affected process. The weakness corresponds to CWE‑1285 and CWE‑129, which indicate improper handling of array bounds or indices and improper validation of array length for buffer access.

Affected Systems

Any application that incorporates the github.com/jackc/pgproto3/v2 library is at risk, including projects that depend on this library such as pgx. All releases prior to the official fix are potentially vulnerable, as the CVE entry does not supply specific version ranges.

Risk and Exploitability

The CVSS score of 7.5 indicates high impact, yet the EPSS score of less than 1% suggests that exploitation is presently unlikely and it is not listed in the CISA KEV catalog. The attack vector is remote via the PostgreSQL server side; an attacker who can control or compromise a PostgreSQL instance can send the malicious DataRow message. No special client‑side privileges are required, though the vulnerable client must accept the connection. Consequently, systems that accept connections from untrusted databases should treat this as sufficiently risky to justify prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the pgproto3 library to the latest patched release from its GitHub repository.
  • Verify your dependency lock files (e.g., go.mod and go.sum) to ensure the vulnerable version is not in use.
  • If the patch cannot be applied immediately, isolate the affected services, monitor for panic crashes, and restrict traffic from untrusted PostgreSQL servers via firewall rules or network segmentation.

Generated by OpenCVE AI on June 3, 2026 at 15:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jqcq-xjh3-6g23 Denial of service in github.com/jackc/pgproto3/v2
History
Type Values Removed Values Added
Weaknesses CWE-129
CPEs cpe:2.3:a:jackc:pgproto3:*:*:*:*:*:go:*:*
Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-1285
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
First Time appeared Jackc
Jackc pgproto3
Vendors & Products Jackc
Jackc pgproto3
Type Values Removed Values Added
Description The DataRow.Decode function fails to properly validate field lengths. A malicious or compromised PostgreSQL server can send a DataRow message with a negative field length, causing a slice bounds out of range panic.
Title Denial of service in github.com/jackc/pgproto3/v2
References
Weaknesses
  • CWE-1285

    Improper Validation of Specified Index, Position, or Offset in Input

  • CWE-129

    Improper Validation of Array Index

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Sep 10, 2026, 12:05 PM
Reserved
Mar 11, 2026, 4:38 PM
Status
Modified
Published
Mar 26, 2026, 8:16 PM
Modified
Sep 10, 2026, 1:18 PM
Severity
Important
Public date
Mar 26, 2026, 7:40 PM