GHSA-f67m-9j94-qv9j: Hyper Parser Creates Invalid Uninitialized Value Vulnerability
HIGHGHSA-f67m-9j94-qv9j is a HIGH parser creates invalid uninitialized value vulnerability (General Security Weakness) affecting Hyper libraries in the crates.io ecosystem. The issue involves parser creates invalid uninitialized value. Remediation is available by upgrading affected packages to version 0.14.12.
GHSA-f67m-9j94-qv9j at a Glance
How to Fix GHSA-f67m-9j94-qv9j
To remediate this vulnerability, upgrade all affected Hyper 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 hyper to 0.14.12
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for hyper
How to Check if You Are Affected
To determine whether your application is affected by GHSA-f67m-9j94-qv9j, inspect your project dependencies for Hyper:
inspect dependencies for hyper
Analyze the terminal output to locate any version of Hyper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.14.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 General Security Weakness. In Hyper, 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-f67m-9j94-qv9j Affected Hyper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
hyper
|
crates.io |
< 0.14.12
|
0.14.12
|
References
Frequently Asked Questions
What is GHSA-f67m-9j94-qv9j?
Which Hyper versions are affected?
What version fixes GHSA-f67m-9j94-qv9j?
Is hyper affected?
What CWE is associated with GHSA-f67m-9j94-qv9j?
How can I check crates.io dependencies for GHSA-f67m-9j94-qv9j?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f67m-9j94-qv9j",
"modified" : "2022-06-16T23:59:29Z",
"published" : "2022-06-16T23:59:29Z",
"aliases" : [ ],
"summary" : "Parser creates invalid uninitialized value",
"details" : "Affected versions of this crate called `mem::uninitialized()` in the HTTP1 parser to create values of type `httparse::Header` (from the `httparse` crate).\nThis is unsound, since `Header` contains references and thus must be non-null.\n \nThe flaw was corrected by avoiding the use of `mem::uninitialized()`, using `MaybeUninit` instead.\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "hyper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.14.12"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/hyperium/hyper/pull/2545"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hyperium/hyper"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2022-0022.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-16T23:59:29Z",
"nvd_published_at" : null
}
}