SECURITY RESEARCH - JAX jnp.load() Pickle RCE PoC

Vulnerability

jax.numpy.load() uses allow_pickle=True as DEFAULT, enabling arbitrary code execution via pickle deserialization when loading crafted .npy model weight files.

Affected

  • JAX (all versions with jax.numpy.load)
  • Any workflow loading .npy files via jnp.load() with default settings
  • JAX model checkpoints, Flax/Haiku/Equinox weight files

Reproduction

import jax.numpy as jnp

# jnp.load defaults to allow_pickle=True
weights = jnp.load('jax_model_weights.npy')  # RCE triggers here

Vector

The .npy file contains a pickled Python object embedded via numpy's object array serialization. When loaded with allow_pickle=True (the default), pickle deserializes and executes the attacker's code.

Responsible Disclosure

Huntr Bug Bounty Program - JAX target.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support