Repository navigation
Commit 1d1999a
GH-51354: [C++][Parquet] Update bundled Apache Thrift to 0.24.0
Update the bundled Apache Thrift dependency from 0.22.0 to 0.24.0 to
address CVE-2026-55969, an integer overflow vulnerability in
TTransport::checkReadBytesAvailable() that could bypass message size
checks when reading maliciously crafted Thrift-encoded data (e.g. via
Parquet file metadata parsed with the compact protocol).
The Clang-only patch (thrift-3187.patch) that suppressed a
gnu-zero-variadic-macro-arguments warning is removed, since the
underlying fix (THRIFT-3268) has been merged upstream and is already
included in Thrift 0.24.0; keeping the patch would cause `git apply`/
`patch` to fail and break the build.
Verified:
- Downloaded thrift-0.24.0.tar.gz and confirmed its SHA256 matches the
official checksum published at downloads.apache.org.
- Confirmed the CVE fix is present in Thrift 0.24.0 by diffing
TProtocol.h/TCompactProtocol.h/TBinaryProtocol.h/TTransport.h against
0.22.0.
- Confirmed thrift-3187.patch no longer applies cleanly against
0.24.0 (already fixed upstream).
- Built Arrow C++ with -DARROW_PARQUET=ON -DARROW_BUILD_TESTS=ON
-DThrift_SOURCE=BUNDLED and ran parquet-internals-test,
parquet-file-deserialize-test, parquet-schema-test,
parquet-reader-test, and parquet-writer-test; all passed.
Co-Authored-By: Claude Sonnet 5 <[email protected]>1 parent e85e181 commit 1d1999a
3 files changed
Lines changed: 2 additions & 185 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1816 | 1816 | | |
1817 | 1817 | | |
1818 | 1818 | | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
1831 | | - | |
1832 | | - | |
1833 | | - | |
1834 | | - | |
1835 | | - | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | 1819 | | |
1840 | 1820 | | |
1841 | | - | |
1842 | 1821 | | |
1843 | 1822 | | |
1844 | 1823 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
| 113 | + | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments