GHSA-g753-ghr7-q33w: Cyfs base :new` Vulnerability

MODERATE
Published
Advisory Summary

GHSA-g753-ghr7-q33w is a MODERATE :new` vulnerability (General Security Weakness) affecting Cyfs base libraries in the crates.io ecosystem. The issue involves :new`. Remediation is available in the latest vendor maintenance releases.

GHSA-g753-ghr7-q33w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g753-ghr7-q33w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Cyfs base
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-g753-ghr7-q33w

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

cyfs-base fixed: Latest secure release
Upgrade cyfs-base 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 cyfs-base

How to Check if You Are Affected

To determine whether your application is affected by GHSA-g753-ghr7-q33w, inspect your project dependencies for Cyfs base:

inspect dependencies for cyfs-base

Analyze the terminal output to locate any version of Cyfs base 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 Cyfs base, 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

The function `ChunkId::new` creates a misaligned pointer by casting mutable pointer of `u8` slice which has alignment 1 to the mutable pointer of `u32` which has alignment 4, and dereference the misaligned pointer leading UB, which should not be allowed in safe function.

GHSA-g753-ghr7-q33w Affected Cyfs base Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
cyfs-base
crates.io
≤ 0.6.12

References

Frequently Asked Questions

What is GHSA-g753-ghr7-q33w?
GHSA-g753-ghr7-q33w is a security vulnerability in Cyfs base involving :new` under General Security Weakness.
Which Cyfs base versions are affected?
Affected versions include releases prior to current release patches across affected packages: cyfs-base.
What version fixes GHSA-g753-ghr7-q33w?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is cyfs-base affected?
Yes, cyfs-base is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-g753-ghr7-q33w?
GHSA-g753-ghr7-q33w is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-g753-ghr7-q33w?
Run the dependency tree command: 'inspect dependencies for cyfs-base'. 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-g753-ghr7-q33w",
  "modified" : "2023-06-22T20:01:55Z",
  "published" : "2023-06-22T20:01:55Z",
  "aliases" : [ ],
  "summary" : "cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`",
  "details" : "The function `ChunkId::new` creates a misaligned pointer by casting mutable pointer of `u8` slice which has alignment 1 to the mutable pointer of `u32` which has alignment 4, and dereference the misaligned pointer leading UB, which should not be allowed in safe function.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "cyfs-base"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.6.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/buckyos/CYFS/issues/275"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/buckyos/CYFS/commit/e030188895096fd8d91d48753877729f4d37dd24"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/buckyos/CYFS"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2023-0046.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-06-22T20:01:55Z",
    "nvd_published_at" : null
  }
}