HIGH7.5
GHSA-jqcq-xjh3-6g23
Denial of service in github.com/jackc/pgproto3/v2
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/jackc/pgproto3/v2
Introduced in:
2.0.0No fixed version published yet for github.com/jackc/pgproto3/v2 (go modules). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-32286[ADVISORY]
- https://github.com/golang/vulndb/issues/4518[WEB]
- https://github.com/jackc/pgx/issues/2507[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2448626[WEB]
- https://github.com/jackc/pgproto3[PACKAGE]
- https://pkg.go.dev/vuln/GO-2026-4518[WEB]
- https://securityinfinity.com/research/memory-safety-vulnerabilities-in-go-postgresql-wire-protocol-parsers-pgproto3-pgx[WEB]