Vulnerability Details : CVE-2021-43620
Potential exploit
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.
Products affected by CVE-2021-43620
- cpe:2.3:a:fruity_project:fruity:0.1.0:*:*:*:*:rust:*:*
- cpe:2.3:a:fruity_project:fruity:0.2.0:*:*:*:*:rust:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-43620
0.29%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 50 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-43620
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:P/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
3.9
|
3.6
|
NIST |
References for CVE-2021-43620
-
https://rustsec.org/advisories/RUSTSEC-2021-0123.html
RUSTSEC-2021-0123: fruity: Converting `NSString` to a String Truncates at Null Bytes › RustSec Advisory DatabaseExploit;Third Party Advisory
-
https://github.com/nvzqz/fruity/issues/14
`Display` for `NSString` truncates at null bytes · Issue #14 · nvzqz/fruity · GitHubExploit;Issue Tracking;Patch;Third Party Advisory
-
https://github.com/rustsec/advisory-db/pull/1102
Add fruity advisory for nvzqz/fruity#14 by dylni · Pull Request #1102 · rustsec/advisory-db · GitHubExploit;Patch;Third Party Advisory
Jump to