Description
flatcc through 0.6.4 contains an out-of-bounds read vulnerability in __flatcc_json_parser_number that allows attackers to read past the input buffer via numbers ending in a decimal point. Attackers can supply untrusted JSON ending immediately after a decimal point to generated parsers, crashing applications when the buffer ends at an unmapped page.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
dvidelabs flatcc
Default version status: unaffected
0 to ≤ 0.6.4affected
pkg:github/dvidelabs/flatccReferences
- https://github.com/dvidelabs/flatcc/commit/356792dc155a9e685acdfe0ec1e209bdadcb4ab9 ↗
- https://github.com/dvidelabs/flatcc ↗
- https://github.com/dvidelabs/flatcc/blob/v0.6.4/src/runtime/json_parser.c#L539-L543 ↗
- https://hackmd.io/@haindpwn/flatcc-json-number-oob-read ↗
- https://www.vulncheck.com/advisories/flatcc-through-0.6.4-out-of-bounds-read-via-flatcc-json-parser-number ↗