HomeDefault status
affected
Any version before 2.0.0
unaffected
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.
Problem types
Product status
Any version before 2.0.0
References
securityinfinity.com/...l-wire-protocol-parsers-pgproto3-pgx
github.com/advisories/GHSA-jqcq-xjh3-6g23
github.com/jackc/pgx/issues/2507
github.com/golang/vulndb/issues/4518