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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dvidelabs | flatcc | ≤ 0.6.4 | — |
References
- Patch Commit patch
- https://github.com/dvidelabs/flatcc product
- https://github.com/dvidelabs/flatcc/blob/v0.6.4/src/runtime/json_parser.c#L539-L543 technical-description
- https://hackmd.io/@haindpwn/flatcc-json-number-oob-read third-party-advisory
- VulnCheck Advisory: flatcc through 0.6.4 Out-of-Bounds Read via __flatcc_json_parser_number third-party-advisory