# OSV-2021-308: Heap-buffer-overflow in flatbuffers::JsonPrinter::GenFieldOffset

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-02-08T00:00:10.107Z
- Modified: 2022-04-13T03:04:42.045Z

## Description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30468

```
Crash type: Heap-buffer-overflow READ 4
Crash state:
flatbuffers::JsonPrinter::GenFieldOffset
flatbuffers::JsonPrinter::GenStruct
flatbuffers::GenerateText
```

(As written by OSS-Fuzz.)

## Affected

- flatbuffers (OSS-Fuzz): from 815d3e820d4969af68800ddca5f1e6771c3622da before 6f3e45eca1fde7a68cb72fd4499a3647f719c9db

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30468> (report)

## Sources

- OSS-Fuzz: [OSV-2021-308](https://osv.dev/vulnerability/OSV-2021-308), CC-BY-4.0, modified 2022-04-13

---

Page: https://cve.day/OSV-2021-308 · Whole record: https://cve.day/OSV-2021-308.json · Rebuilt by cve.day 2026-11-25T22:56:18.714Z
