RUSTSEC-2021-0122
CRITICAL 9.8CVSS 3.1Generated code can read and write out of bounds in safe code
Code generated by flatbuffers' compiler is unsafe but not marked as such.
See https://github.com/google/flatbuffers/issues/6627 for details.
All users that use generated code by flatbuffers compiler are recommended to:
- not expose flatbuffer generated code as part of their public APIs
- audit their code and look for any usage of
follow,push, or any method that uses them
(e.g.self_follow). - Carefuly go through the crates' documentation to understand which "safe" APIs are not
intended to be used.
- Published
- 31 Oct 2021
- Last modified
- 8 Nov 2023
- Also known as
- GHSA-3jch-9qgp-4844
- Sources
- OSV GHSA-3jch-9qgp-4844JSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | flatbuffers | < 22.9.29 | 22.9.29 |
| OSV | crates.io | flatbuffers | >= 0.0.0-0, < 22.9.29 | 22.9.29 |
References
- https://github.com/google/flatbuffers/issues/6627 · WEB, REPORT
- https://github.com/google/flatbuffers/pull/7518 · WEB
- https://github.com/google/flatbuffers · PACKAGE
- https://github.com/google/flatbuffers/releases/tag/v22.9.29 · WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0122.html · WEB, ADVISORY
- https://crates.io/crates/flatbuffers · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 31 Oct 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jun 2022)