jacob-ablowitz opened a new issue, #1024:
URL: https://github.com/apache/arrow-nanoarrow/issues/1024

   The vendored flatcc in `thirdparty/flatcc` still has the overflow guard that 
flatcc fixed for **CVE-2026-116734** 
([GHSA-ch33-r734-vw2g](https://github.com/advisories/GHSA-ch33-r734-vw2g)).
   
   `thirdparty/flatcc/src/runtime/verifier.c`, `check_header()` (line 130 on 
`main` at b7a56dac2):
   
   ```c
   if (uoffset_size <= voffset_size && k + offset_size < k) {
   ```
   
   Upstream fix, 
[dvidelabs/flatcc@0df9c097](https://github.com/dvidelabs/flatcc/commit/0df9c097a19badc8bd22d93af8fd47bd291e5d9f)
 ("Fix incorrect overflow guard in verifier"), drops the first condition:
   
   ```c
   if (k + offset_size < k) {
   ```
   
   With the default `uoffset_t`/`voffset_t` sizes the first condition is false, 
so the wrap check never runs. The advisory names 32-bit builds. nanoarrow's IPC 
decoder runs this verifier on every message (`Message_verify_as_root` in 
`src/nanoarrow/ipc/decoder.c`), so a crafted Arrow IPC stream can pass 
verification with a wrapped offset and read out of bounds. That matters most 
for wasm32 builds that decode streams in the browser, e.g. DuckDB-Wasm via 
duckdb-nanoarrow.
   
   Could the vendored flatcc be updated to include 0df9c097 (or a release that 
contains it)? The last revendor was #854. Happy to open a PR with the one-line 
change if that's preferred over a full revendor.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to