# CVE-2021-43620: Improper Input Validation in fruity

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.36%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-11-14T12:00:00.000Z
- Modified: 2026-06-17T04:11:12.523Z
- Also known as: GHSA-h352-g5vw-3926, RUSTSEC-2021-0123
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- fruity (crates.io): from 0.1.0 before 0.3.0
- fruity_project fruity: 0.1.0; 0.2.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/nvzqz/fruity/issues/14> (exploit, issue-tracking, patch, report, third-party-advisory, web)
- <https://github.com/rustsec/advisory-db/pull/1102> (exploit, patch, third-party-advisory, web)
- <https://rustsec.org/advisories/RUSTSEC-2021-0123.html> (exploit, advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43620> (advisory)
- <https://github.com/nvzqz/fruity> (package)
- <https://crates.io/crates/fruity> (package)

## Sources

- CVE List: [CVE-2021-43620](https://www.cve.org/CVERecord?id=CVE-2021-43620), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-h352-g5vw-3926](https://github.com/advisories/GHSA-h352-g5vw-3926), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0123](https://rustsec.org/advisories/RUSTSEC-2021-0123.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-43620](https://nvd.nist.gov/vuln/detail/CVE-2021-43620), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43620 · Whole record: https://cve.day/CVE-2021-43620.json · Rebuilt by cve.day 2026-11-25T22:24:36.010Z
