---
id: CVE-2026-56872
aliases:
  - GO-2026-6171
title: >-
  Malformed RowDescription and DataRow messages cause panics in
  github.com/lib/pq
summary: >-
  Malformed RowDescription and DataRow messages cause panics in
  github.com/lib/pq
severity: none
vendor: lib
product: github.com/lib/pq
ecosystem: go
affected:
  - github.com/lib/pq >= 1.0.0
published: '2026-08-18'
updated: '2026-08-18'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GO-2026-6171'
references:
  - url: 'https://github.com/golang/vulndb/issues/6171'
tags:
  - osv
  - go
ingestedAt: '2026-08-18T19:21:39.131Z'
---

## Overview

github.com/lib/pq decodes attacker-controlled RowDescription and DataRow payloads without validating their structural relationship or encoded value widths required by binary decoders. A malicious PostgreSQL endpoint or active network attacker on an unauthenticated transport can send malformed row responses, causing unrecovered runtime panics while reading query results.

## Affected packages

- `github.com/lib/pq >= 1.0.0`

## Remediation

Refer to the advisory for the patched release.
