{"id":"CVE-2021-43620","published":"2021-11-15T04:16:20Z","modified":"2024-08-04T04:03:08Z","title":"An issue was discovered in the fruity crate through 0.2.0 for Rust","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01358,"percentile":0.72354,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/nvzqz/fruity/issues/14","tags":["x_refsource_MISC"]},{"url":"https://github.com/rustsec/advisory-db/pull/1102","tags":["x_refsource_MISC"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0123.html","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":14.47}]},"affected":[{"ecosystem":"crates.io","package":"fruity","vulnerableRanges":[">=0.1.0, <0.3.0"],"patched":["0.3.0"],"from":["GHSA-h352-g5vw-3926","RUSTSEC-2021-0123"],"provenance":"source"}],"summary":{"text":"The fruity crate for Rust, through version 0.2.0, has a flaw in its NSString conversion methods, which call CStr::from_ptr on the string buffer and so truncate at the first null byte rather than the true end of the string. This can affect security-relevant validation of filename extensions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:48Z"},"euvd":{"id":"EUVD-2021-2353","exploited":false,"provenance":"source"}}