CVE-2024-58253: Obfstr Obfstr Type Confusion Vulnerability Vulnerability

LOW
Advisory Identifier: GHSA-v2p5-q653-9j99
CVSS 2.9
CWE-843
Published
Advisory Summary

CVE-2024-58253 is a LOW (CVSS 2.9) obfstr type confusion vulnerability vulnerability (CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')) affecting Obfstr libraries in the crates.io ecosystem. The issue involves obfstr type confusion vulnerability. Remediation is available by upgrading affected packages to version 0.4.4.

CVE-2024-58253 at a Glance

CVE Identifier CVE-2024-58253
GHSA Identifier GHSA-v2p5-q653-9j99
Severity LOW
CVSS v3.1 Base Score 2.9
CWE Classification CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
Affected Product Obfstr
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 2.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-58253

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

obfstr fixed: 0.4.4
Upgrade obfstr to 0.4.4
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 obfstr

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-58253, inspect your project dependencies for Obfstr:

inspect dependencies for obfstr

Analyze the terminal output to locate any version of Obfstr in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.4), 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-843: Access of Resource Using Incompatible Type ('Type Confusion'), where the product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type. In Obfstr, 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

In the obfstr crate before 0.4.4 for Rust, the obfstr! argument type is not restricted to string slices, leading to invalid UTF-8 conversion that produces an invalid value.

CVE-2024-58253 Affected Obfstr Versions

1 component(s)
Fixed Versions:
0.4.4
Product / Package Ecosystem Affected Versions Fixed Version
obfstr
crates.io
< 0.4.4
0.4.4

References

Frequently Asked Questions

What is CVE-2024-58253?
CVE-2024-58253 is a security vulnerability in Obfstr involving obfstr Type Confusion vulnerability under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion').
Which Obfstr versions are affected?
Affected versions include releases prior to 0.4.4 across affected packages: obfstr.
What version fixes CVE-2024-58253?
Upgrading to 0.4.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is obfstr affected?
Yes, obfstr is affected in releases prior to 0.4.4. Upgrade your dependency to 0.4.4 or later.
What is the CVSS score of CVE-2024-58253?
CVE-2024-58253 has a CVSS v3.1 base score of 2.9 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2024-58253?
CVE-2024-58253 is classified under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') (The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.).
How can I check crates.io dependencies for CVE-2024-58253?
Run the dependency tree command: 'inspect dependencies for obfstr'. 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-v2p5-q653-9j99",
  "modified" : "2025-05-05T17:25:08Z",
  "published" : "2025-05-02T21:30:43Z",
  "aliases" : [ "CVE-2024-58253" ],
  "summary" : "obfstr Type Confusion vulnerability",
  "details" : "In the obfstr crate before 0.4.4 for Rust, the obfstr! argument type is not restricted to string slices, leading to invalid UTF-8 conversion that produces an invalid value.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "obfstr"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-58253"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CasualX/obfstr/issues/60"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/CasualX/obfstr"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CasualX/obfstr/compare/v0.4.3...v0.4.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-843" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-05T17:25:08Z",
    "nvd_published_at" : "2025-05-02T20:15:19Z"
  }
}