Description
A malicious or compromised server can return a binary `hstore` value with an
invalid internal length field, causing the client to panic while decoding it.
Applications that connect only to a trusted database are not exposed; the risk
applies to clients that may connect to untrusted or user-supplied servers, or
whose connection can be intercepted by a man-in-the-middle.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | postgres-protocol | < 0.6.12 | 0.6.12 | GHSA-rgqc-3x5p-6gwg |
| crates.io | postgres-protocol | >= 0.0.0-0, < 0.6.12 | 0.6.12 | RUSTSEC-2026-0180 |
References
- https://github.com/rust-postgres/rust-postgres/commit/a7cf84b5c46431cbca9d8ff50508c23f446efa7d web
- https://github.com/rust-postgres/rust-postgres package
- https://github.com/rust-postgres/rust-postgres/releases/tag/postgres-protocol-v0.6.12 web
- https://rustsec.org/advisories/RUSTSEC-2026-0180.html web