CVE-2021-43620 json
Improper Input Validation in fruity
published 2021-11-14 4 y ago modified 2026-06-17 4 mo ago also GHSA-h352-g5vw-3926 , RUSTSEC-2021-0123 , EUVD-2021-2353
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io fruity 0.3.0
- github.com/nvzqz/fruity/issues/14 advisory
- github.com/rustsec/advisory-db#1102 advisory
Exploit prediction
1.36% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/nvzqz/fruity/issues/14 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/rustsec/advisory-db/pull/1102 referenced PoC, tagged "exploit" by a source, unverified
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2021-0123.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | fruity | >=0.1.0, <0.3.0 |
0.3.0 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/nvzqz/fruity/issues/14
web, exploit, issue-tracking, patch, third-party-advisory, report
-
github.com
/rustsec/advisory-db/pull/1102
web, exploit, patch, third-party-advisory
-
rustsec.org
/advisories/RUSTSEC-2021-0123.html
web, exploit, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-43620
advisory
-
github.com
/nvzqz/fruity
package
-
crates.io
/crates/fruity
package
Sources
- CVE List CVE-2021-43620
- GitHub Advisory GHSA-h352-g5vw-3926
- NVD CVE-2021-43620
- OSV RUSTSEC-2021-0123
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.