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.
PUBLISHED5.2
Denial of service in github.com/jackc/pgproto3/v2
Problem type
- CWE-125: Out-of-bounds Read
Affected products
github.com/jackc/pgproto3/v2
github.com/jackc/pgproto3/v2
< 2.0.0 - UNAFFECTED
References
github.com
https://github.com/jackc/pgx/issues/2507
github.com
https://github.com/golang/vulndb/issues/4518
pkg.go.dev
https://pkg.go.dev/vuln/GO-2026-4518
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-32286Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-32286",
"assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
"assignerShortName": "Go",
"dateUpdated": "2026-03-26T19:40:51.974Z",
"dateReserved": "2026-03-11T16:38:46.556Z",
"datePublished": "2026-03-26T19:40:51.974Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
"shortName": "Go",
"dateUpdated": "2026-03-26T19:40:51.974Z"
},
"title": "Denial of service in github.com/jackc/pgproto3/v2",
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"affected": [
{
"vendor": "github.com/jackc/pgproto3/v2",
"product": "github.com/jackc/pgproto3/v2",
"collectionURL": "https://pkg.go.dev",
"packageName": "github.com/jackc/pgproto3/v2",
"programRoutines": [
{
"name": "DataRow.Decode"
},
{
"name": "Frontend.Receive"
}
],
"defaultStatus": "affected",
"versions": [
{
"version": "0",
"status": "unaffected",
"versionType": "semver",
"lessThan": "2.0.0"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-125: Out-of-bounds Read"
}
]
}
],
"references": [
{
"url": "https://github.com/jackc/pgx/issues/2507"
},
{
"url": "https://github.com/golang/vulndb/issues/4518"
},
{
"url": "https://pkg.go.dev/vuln/GO-2026-4518"
}
]
}
}
}