Improper Neutralization of Null Byte Affecting fruity package, versions >=0.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (51st 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 IDSNYK-RUST-FRUITY-1920931
  • published15 Nov 2021
  • disclosed15 Nov 2021
  • creditdylni

Introduced: 15 Nov 2021

CVE-2021-43620  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

There is no fixed version for fruity.

Overview

fruity is a Rusty bindings for Apple libraries

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte via the NSString method which may return a partial result for string conversion. Since CStr::from_ptr is called on a pointer to the string buffer, the string is terminated at the first null byte, which might not be the end of the string. This can allow bypassing file extension checks.

CVSS Scores

version 3.1