Vulnerability DatabaseRUSTSEC-2020-0009

RUSTSEC-2020-0009
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the flatbuffers crate through 2020-04-11 for Rust, identified as RUSTSEC-2020-0009 (CVE-2020-35864). The vulnerability involves the read_scalar and read_scalar_at functions, which can perform unsafe transmutations of values without proper safety blocks (RustSec Advisory).

Technical details

The vulnerability centers around the read_scalar and read_scalar_at functions in the flatbuffers crate, which behave similarly to transmute operations. These functions can lead to undefined behavior for types where not all bit patterns are valid (such as bool or NonZero*) and potentially create dangling pointers. The severity is rated as HIGH with a CVSS v3.1 Base Score of 7.5 (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) (NVD).

Impact

The vulnerability can cause undefined behavior in Rust applications using the flatbuffers crate, potentially leading to memory safety violations and application crashes. The issue affects versions from 0.4.0 up to and including 1.12.0 of the flatbuffers crate (NVD).

Mitigation and workarounds

Several breaking solutions have been proposed: making read_scalar and read_scalar_at functions unsafe, making the EndianScalar trait unsafe, or restructuring the EndianScalar trait to implement safer alternatives using explicit byte manipulation methods (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22257HIGH8.8
  • RustRust
  • salvo
NoYesJan 08, 2026
CVE-2026-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
GHSA-g59m-gf8j-gjf5LOW3.7
  • RustRust
  • aws-sdk-controlcatalog
NoYesJan 08, 2026
GHSA-585q-cm62-757jLOW2
  • RustRust
  • mnl
NoNoJan 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management