GHSA-9qxh-258v-666c: Owning ref Owning_ref Vulnerable To Multiple Soundness Vulnerability

MODERATE
Published
Advisory Summary

GHSA-9qxh-258v-666c is a MODERATE owning_ref vulnerable to multiple soundness vulnerability (General Security Weakness) affecting Owning ref libraries in the crates.io ecosystem. The issue involves owning_ref vulnerable to multiple soundness issues. Remediation is available in the latest vendor maintenance releases.

GHSA-9qxh-258v-666c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9qxh-258v-666c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Owning ref
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-9qxh-258v-666c

To remediate this vulnerability, upgrade all affected Owning ref dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

owning_ref fixed: Latest secure release
Upgrade owning_ref to Latest secure release
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 owning_ref

How to Check if You Are Affected

To determine whether your application is affected by GHSA-9qxh-258v-666c, inspect your project dependencies for Owning ref:

inspect dependencies for owning_ref

Analyze the terminal output to locate any version of Owning ref in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Owning ref, 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

- `OwningRef::map_with_owner` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/77) and may result in a use-after-free. - `OwningRef::map` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/71) and may result in a use-after-free. - `OwningRefMut::as_owner` and `OwningRefMut::as_owner_mut` are [unsound](https://github.com/Kimundi/owning-ref-rs/issues/61) and may result in a use-after-free. - The crate [violates Rust's aliasing rules](https://github.com/Kimundi/owning-ref-rs/issues/49), which may cause miscompilations on recent compilers that emit the LLVM `noalias` attribute. No patched versions are available at this time. While a pull request with some fixes is outstanding, the maintainer appears to be unresponsive.

GHSA-9qxh-258v-666c Affected Owning ref Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
owning_ref
crates.io
≤ 0.4.1

References

Frequently Asked Questions

What is GHSA-9qxh-258v-666c?
GHSA-9qxh-258v-666c is a security vulnerability in Owning ref involving owning_ref vulnerable to multiple soundness issues under General Security Weakness.
Which Owning ref versions are affected?
Affected versions include releases prior to current release patches across affected packages: owning_ref.
What version fixes GHSA-9qxh-258v-666c?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is owning_ref affected?
Yes, owning_ref is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-9qxh-258v-666c?
GHSA-9qxh-258v-666c is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-9qxh-258v-666c?
Run the dependency tree command: 'inspect dependencies for owning_ref'. 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-9qxh-258v-666c",
  "modified" : "2022-08-10T17:26:00Z",
  "published" : "2022-08-10T17:26:00Z",
  "aliases" : [ ],
  "summary" : "owning_ref vulnerable to multiple soundness issues",
  "details" : "- `OwningRef::map_with_owner` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/77) and may result in a use-after-free.\n- `OwningRef::map` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/71) and may result in a use-after-free.\n- `OwningRefMut::as_owner` and `OwningRefMut::as_owner_mut` are [unsound](https://github.com/Kimundi/owning-ref-rs/issues/61) and may result in a use-after-free.\n- The crate [violates Rust's aliasing rules](https://github.com/Kimundi/owning-ref-rs/issues/49), which may cause miscompilations on recent compilers that emit the LLVM `noalias` attribute.\n\nNo patched versions are available at this time. While a pull request with some fixes is outstanding, the maintainer appears to be unresponsive.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "owning_ref"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://github.com/Kimundi/owning-ref-rs"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/noamtashma/owning-ref-unsoundness"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0040.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-10T17:26:00Z",
    "nvd_published_at" : null
  }
}