Security mailing lists by PureSourceCode

CVE-2020-35865

HIGH 7.5CVSS 3.1

os_str_bytes relies on undefined behavior of `char::from_u32_unchecked`

An issue was discovered in the os_str_bytes crate before 2.0.0 for Rust. It has false expectations about char::from_u32_unchecked behavior.

Published
31 Dec 2020
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-704
Also known as
GHSA-q948-x8rf-888mRUSTSEC-2020-0012
Sources
NVDJSONOSV GHSA-q948-x8rf-888mJSONOSV RUSTSEC-2020-0012JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV RustSec CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD os_str_bytes_project os_str_bytes
cpe:2.3:a:os_str_bytes_project:os_str_bytes:*:*:*:*:*:rust:*:*
< 2.0.0 2.0.0
OSV crates.io os_str_bytes < 2.0.0 2.0.0
OSV crates.io os_str_bytes >= 0.0.0-0, < 2.0.0 2.0.0

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 31 Dec 2020)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Apr 2020)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.