# GHSA-rgqc-3x5p-6gwg: postgres-protocol: Panic decoding a malformed `hstore` value allows denial of service

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-06-12T12:00:00.000Z
- Modified: 2026-09-10T03:51:14.529Z
- Also known as: RUSTSEC-2026-0180
- Weaknesses: CWE-20, CWE-248

## 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.

(As written by GitHub Advisory Database.)

## Affected

- postgres-protocol (crates.io): before 0.6.12; from 0.0.0-0 before 0.6.12

## Every score

- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- RustSec Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`

## 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> (advisory, web)
- <https://crates.io/crates/postgres-protocol> (package)

## Sources

- GitHub Advisory Database: [GHSA-rgqc-3x5p-6gwg](https://github.com/advisories/GHSA-rgqc-3x5p-6gwg), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2026-0180](https://rustsec.org/advisories/RUSTSEC-2026-0180.html), CC0-1.0, modified 2026-08-25

---

Page: https://cve.day/GHSA-rgqc-3x5p-6gwg · Whole record: https://cve.day/GHSA-rgqc-3x5p-6gwg.json · Rebuilt by cve.day 2026-11-25T22:56:43.371Z
