Downloads · 30 days
0
massyoh/skops-zip-bomb-256m-poc
skops-zip-bomb-256m-poc is a machine learning model from massyoh. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a proof-of-concept malformed .skops model file for a memory exhaustion issue in skops-dev/skops.
Downloads · 30 days
0
Access
Public
Updated May 19, 2026
Repo size
261 KB
Likes
0
Public
Click a slice to open those files.
.skops261 KB · 99%
From the Hugging Face model README
This repository contains a proof-of-concept malformed .skops model file for a memory exhaustion issue in skops-dev/skops.
skops_zip_bomb_256m.skops: compressed PoC model file.poc.py: optional script to regenerate and exercise the PoC locally.https://github.com/skops-dev/skops0.15.dev0f61636d4334ebb3a84546cdb47cf2cff670e0436python -m pip install "numpy>=1.25.0" "scipy>=1.10.0" "scikit-learn>=1.2" "prettytable>=3.9" "packaging>=17.0" skops
python poc.py
Expected behavior:
.skops file is about 255 KiB.skops.io.load() forces the member to be decompressed into memory before rejecting the malformed NumPy content.skops.io.get_untrusted_types(file=...) returns [], while also processing the large member.This PoC is intentionally capped at 256 MiB to avoid excessive resource use.