RustSec logo

HistoryEditJSON (OSV)

RUSTSEC-2026-0180

Panic decoding a malformed hstore value allows denial of service

Reported
Issued
Package
postgres-protocol (crates.io)
Type
Vulnerability
Categories
Keywords
#hstore
References
CVSS Score
6.9 MEDIUM
CVSS Details
Attack Complexity
Low
Attack Requirements
None
Attack Vector
Network
Privileges Required
None
Availability Impact to the Subsequent System
None
Confidentiality Impact to the Subsequent System
None
Integrity Impact to the Subsequent System
None
User Interaction
None
Availability Impact to the Vulnerable System
Low
Confidentiality Impact to the Vulnerable System
None
Integrity Impact to the Vulnerable System
None
CVSS Vector
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
Patched
  • >=0.6.12
Affected Functions
Version
postgres_protocol::types::hstore_from_sql
  • <0.6.12

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.

Advisory available under CC0-1.0 license.