GHSA-f67m-9j94-qv9j: Hyper Parser Creates Invalid Uninitialized Value Vulnerability

HIGH
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-f67m-9j94-qv9j
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Hyper
Package Ecosystem crates.io
Published Date
Last Updated

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.

hyper fixed: 0.14.12
Upgrade hyper to 0.14.12
Verify Direct and Transitive Dependencies

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

Affected versions of this crate called `mem::uninitialized()` in the HTTP1 parser to create values of type `httparse::Header` (from the `httparse` crate). This is unsound, since `Header` contains references and thus must be non-null. The flaw was corrected by avoiding the use of `mem::uninitialized()`, using `MaybeUninit` instead.

GHSA-f67m-9j94-qv9j Affected Hyper Versions

1 component(s)
Fixed Versions:
0.14.12
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?
GHSA-f67m-9j94-qv9j is a security vulnerability in Hyper involving Parser creates invalid uninitialized value under General Security Weakness.
Which Hyper versions are affected?
Affected versions include releases prior to 0.14.12 across affected packages: hyper.
What version fixes GHSA-f67m-9j94-qv9j?
Upgrading to 0.14.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hyper affected?
Yes, hyper is affected in releases prior to 0.14.12. Upgrade your dependency to 0.14.12 or later.
What CWE is associated with GHSA-f67m-9j94-qv9j?
GHSA-f67m-9j94-qv9j is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-f67m-9j94-qv9j?
Run the dependency tree command: 'inspect dependencies for hyper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}