Downloads · 30 days
0
willardj/msgpack-numpy-rce-poc
msgpack-numpy-rce-poc is a machine learning model from willardj. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
DO NOT LOAD THIS FILE IN AN UNCONTROLLED ENVIRONMENT
Downloads · 30 days
0
Access
Public
Updated Apr 12, 2026
Repo size
122 B
Likes
1
Public
Click a slice to open those files.
Other1.5 KB · 59%
From the Hugging Face model README
DO NOT LOAD THIS FILE IN AN UNCONTROLLED ENVIRONMENT
This repository contains a proof-of-concept .msgpack file that demonstrates arbitrary code execution via msgpack_numpy.unpackb().
msgpack_numpy.decode() at line 99-100 calls pickle.loads(obj[b'data']) with zero validation when obj[b'kind'] == b'O'. An attacker who distributes a crafted .msgpack file causes any victim process that loads it with msgpack_numpy.unpackb() to execute arbitrary code.
import msgpack_numpy
import msgpack
data = open("malicious.msgpack", "rb").read()
msgpack_numpy.unpackb(data, raw=False) # RCE triggers here
# Creates /tmp/msgpack-rce-proof.txt with content "EXPLOITED"