Skip to content

docs: add security warning for RCE in from_npy_stack (#12578) - #12608

Merged
jacobtomlinson merged 1 commit into
dask:mainfrom
iamdpsingh:iamdpsingh/docs/add-npy-stack-warning
Sep 29, 2026
Merged

jacobtomlinson merged 1 commit into
dask:mainfrom
iamdpsingh:iamdpsingh/docs/add-npy-stack-warning

Conversation

@iamdpsingh

Copy link
Copy Markdown
Contributor

Fixes #12578. Added security warnings to to_npy_stack and from_npy_stack documentation explaining the risks of unpickling arbitrary metadata files and advising the use of gated pickle.load or safer serialization formats.

Add explicit warnings in the docstrings of `to_npy_stack` and
`from_npy_stack` stating that `from_npy_stack` uses `pickle.load` to
deserialize the `info` metadata file, which can lead to Remote Code Execution (RCE)
if loading untrusted data.

Fixes dask#12578
Co-Authored-By: Claude <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     25 files  ±0       25 suites  ±0   6h 48m 21s ⏱️ + 8m 22s
 19 914 tests ±0   18 481 ✅ ±0   1 433 💤 ±0  0 ❌ ±0 
379 353 runs  ±0  332 081 ✅ ±0  47 272 💤 ±0  0 ❌ ±0 

Results for commit be1939d. ± Comparison against base commit 9dc535d.

@jacobtomlinson
jacobtomlinson merged commit 6ce3740 into dask:main Sep 29, 2026
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dask from_npy_stack RCE via Ungated pickle.load on the .npy Stack info Metadata File

2 participants