Downloads · 30 days
9
19% of all-time downloads
d3banjan/rwkv7-vocab-test
rwkv7-vocab-test is a machine learning model from d3banjan. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
⚠️ SECURITY RESEARCH — DO NOT USE IN PRODUCTION ⚠️
Downloads · 30 days
9
19% of all-time downloads
All-time downloads
48
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md3.5 KB · 58%
From the Hugging Face model README
⚠️ SECURITY RESEARCH — DO NOT USE IN PRODUCTION ⚠️
This repository demonstrates CVE-pending arbitrary code execution via
eval() in keras_hub.models.RWKV7Tokenizer vocabulary loading.
keras_hub/src/models/rwkv7/rwkv7_tokenizer.py lines 117 and 275
call eval() on each line of vocabulary.txt during preset loading.
The vocabulary file in this repo contains a payload that executes
touch /tmp/keras_hub_rwkv7_pwned to prove code execution.
import keras_hub
tokenizer = keras_hub.models.RWKV7Tokenizer.from_preset(
"hf://d3banjan/rwkv7-tokenizer-eval-rce-poc"
)
# Check: ls -la /tmp/keras_hub_rwkv7_pwned
Replace eval() with ast.literal_eval() at lines 117 and 275.