CVE-2024-58253: Obfstr Obfstr Type Confusion Vulnerability Vulnerability
LOWCVE-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
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).
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.
Upgrade obfstr to 0.4.4
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
CVE-2024-58253 Affected Obfstr Versions
1 component(s)| 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?
Which Obfstr versions are affected?
What version fixes CVE-2024-58253?
Is obfstr affected?
What is the CVSS score of CVE-2024-58253?
What CWE is associated with CVE-2024-58253?
How can I check crates.io dependencies for CVE-2024-58253?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}