Access of Resource Using Incompatible Type ('Type Confusion') Affecting obfstr package, versions <0.4.4


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access of Resource Using Incompatible Type ('Type Confusion') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-OBFSTR-10345079
  • published12 Jun 2025
  • disclosed2 May 2025
  • creditCXWorks

Introduced: 2 May 2025

CVE-2024-58253  (opens in a new tab)
CWE-843  (opens in a new tab)

How to fix?

Upgrade obfstr to version 0.4.4 or higher.

Overview

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') due to the obfstr! argument type not being restricted to string slices, leading to invalid UTF-8 conversion that produces an invalid value. An attacker can manipulate the output or cause unexpected behavior by supplying non-string inputs.

CVSS Base Scores

version 4.0
version 3.1