GHSA-rgqc-3x5p-6gwg: postgres-protocol Denial of Service Vulnerability
MODERATEGHSA-rgqc-3x5p-6gwg is a MODERATE denial of service vulnerability (CWE-20: Improper Input Validation) affecting postgres-protocol libraries in the crates.io ecosystem. The issue involves panic decoding a malformed `hstore` value allows denial of service. Remediation is available by upgrading affected packages to version 0.6.12.
GHSA-rgqc-3x5p-6gwg at a Glance
How to Fix GHSA-rgqc-3x5p-6gwg
To remediate this vulnerability, upgrade all affected postgres-protocol dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade postgres-protocol to 0.6.12
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for postgres-protocol
How to Check if You Are Affected
To determine whether your application is affected by GHSA-rgqc-3x5p-6gwg, inspect your project dependencies for postgres-protocol:
inspect dependencies for postgres-protocol
Analyze the terminal output to locate any version of postgres-protocol in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.12), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In postgres-protocol, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-rgqc-3x5p-6gwg Affected postgres-protocol Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
postgres-protocol
|
crates.io |
< 0.6.12
|
0.6.12
|
References
Frequently Asked Questions
What is GHSA-rgqc-3x5p-6gwg?
Which postgres-protocol versions are affected?
What version fixes GHSA-rgqc-3x5p-6gwg?
Is postgres-protocol affected?
What CWE is associated with GHSA-rgqc-3x5p-6gwg?
How can I check crates.io dependencies for GHSA-rgqc-3x5p-6gwg?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rgqc-3x5p-6gwg",
"modified" : "2026-08-24T19:47:49Z",
"published" : "2026-08-24T19:47:49Z",
"aliases" : [ ],
"summary" : "postgres-protocol: Panic decoding a malformed `hstore` value allows denial of service",
"details" : "A malicious or compromised server can return a binary `hstore` value with an\ninvalid internal length field, causing the client to panic while decoding it.\n\nApplications that connect only to a trusted database are not exposed; the risk\napplies to clients that may connect to untrusted or user-supplied servers, or\nwhose connection can be intercepted by a man-in-the-middle.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "postgres-protocol"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.12"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rust-postgres/rust-postgres/commit/a7cf84b5c46431cbca9d8ff50508c23f446efa7d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rust-postgres/rust-postgres"
}, {
"type" : "WEB",
"url" : "https://github.com/rust-postgres/rust-postgres/releases/tag/postgres-protocol-v0.6.12"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2026-0180.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-248" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-24T19:47:49Z",
"nvd_published_at" : null
}
}