Repository navigation
Commit 4bf5715
committed
fix: allow thrift 0.25.x and clear additional Apache Thrift CVEs
Widen the thrift constraint from ~=0.24.0 to >=0.24.0,<0.26.0 so 0.25.0
can be resolved. thrift 0.25.0 fixes 61 CVEs across language bindings,
several affecting the Python binding this connector uses, including
CVE-2026-66858 (skip() recursion-limit bypass in the Python accelerator)
and CVE-2026-85494 (framed transport / binary protocol size a read
buffer from a peer-declared length with no effective maximum).
thrift 0.25.0 also changes TBinaryProtocol's default string_length_limit
from unbounded (None) to ~15.6 MiB (DEFAULT_MAX_FRAME_SIZE) as part of
that same CVE-2026-85494 fix. This connector already bounds its own
result stream via the TLS-verified, server-negotiated buffer_size_bytes
(default 100 MiB), and inline Arrow result batches in TFetchResultsResp
routinely exceed thrift's new ~15.6 MiB cap, so a bare version bump would
regress large-result-set reads. Construct TBinaryProtocol with explicit
string_length_limit=None and container_length_limit=None to preserve
pre-0.25 unbounded behavior for the connector's own already-bounded,
trusted-server result stream.
0.25.0 ships the same prebuilt wheel matrix as 0.24.0
(manylinux2014/macOS/musl/Windows, cp310-cp314), so the DBR LTS
build-time packaging risk that originally capped this dependency
(#798, #840) does not apply; the DBR LTS Install CI gate remains the
authoritative check.
Closes #969
Signed-off-by: Paddy Hannon <pih@ehukai.com>
AOS-Session: 01a10c87-3242-7517-a60e-279091b796c3
AOS-Session: pi-1791211537-21291-e08bda26
AOS-Commit-Time: 2026-10-05T15:03:26Z1 parent 01564c7 commit 4bf5715
4 files changed
Lines changed: 145 additions & 46 deletions
File tree
- src/databricks/sql/backend
- tests/unit
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
28 | 44 | | |
29 | 45 | | |
30 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
79 | 92 | | |
80 | 93 | | |
81 | 94 | | |
| |||
237 | 250 | | |
238 | 251 | | |
239 | 252 | | |
240 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
241 | 258 | | |
242 | 259 | | |
243 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
207 | 268 | | |
208 | 269 | | |
209 | 270 | | |
| |||
0 commit comments