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.
https://securityinfinity.com/research/memory-safety-vulnerabilities-in-go-postgresql-wire-protocol-parsers-pgproto3-pgx
https://pkg.go.dev/vuln/GO-2026-4518
https://github.com/advisories/GHSA-jqcq-xjh3-6g23
https://github.com/jackc/pgx/issues/2507
https://github.com/golang/vulndb/issues/4518
Source: Mitre, NVD
Published: 2026-03-26
Updated: 2026-06-03
Base Score: 7.8
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C
Severity: High
Base Score: 7.5
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.00017