Potential vulnerability in fruity crate for Rust: Inadequate validation of filename extensions and potential partial results in NSString conversion

Potential vulnerability in fruity crate for Rust: Inadequate validation of filename extensions and potential partial results in NSString conversion

CVE-2021-43620 · HIGH Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

An issue was discovered in the fruity crate through 0.2.0 for Rust. Security-relevant validation of filename extensions is plausibly affected. Methods of NSString for conversion to a string may return a partial result. Because they call CStr::from_ptr on a pointer to the string buffer, the string is terminated at the first '\0' byte, which might not be the end of the string.

Learn more about our Web Application Penetration Testing UK.