CVE-2026-4427: pgproto3: Negative field length panics in DataRow.Decode
A flaw was found in pgproto3. A malicious or compromised PostgreSQL server can exploit this by sending a DataRow message with a negative field length. This input validation vulnerability can lead to a denial of service (DoS) due to a slice bounds out of range panic.
References
- access.redhat.com/security/cve/CVE-2026-4427
- bugzilla.redhat.com/show_bug.cgi?id=2448626
- github.com/advisories/GHSA-x6gf-mpr2-68h6
- github.com/golang/vulndb/issues/4518
- github.com/jackc/pgproto3
- github.com/jackc/pgx/issues/2507
- nvd.nist.gov/vuln/detail/CVE-2026-4427
- securityinfinity.com/research/memory-safety-vulnerabilities-in-go-postgresql-wire-protocol-parsers-pgproto3-pgx
Code Behaviors & Features
Detect and mitigate CVE-2026-4427 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →