Improper Validation Affecting flatbuffers package, versions <0.6.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-FLATBUFFERS-1244077
  • published8 Apr 2021
  • disclosed20 Oct 2019
  • creditUnknown

Introduced: 20 Oct 2019

CVE-2019-25004  (opens in a new tab)
CWE-354  (opens in a new tab)

How to fix?

Upgrade flatbuffers to version 0.6.1 or higher.

Overview

flatbuffers is a memory efficient serialization library.

Affected versions of this package are vulnerable to Improper Validation. The implementation of impl Follow for bool allows to reinterpret arbitrary bytes as a bool. In Rust, bool has stringent requirements for its in-memory representation. Use of this function allows to violate these requirements and invoke undefined behaviour in safe code.

CVSS Scores

version 3.1