RWKV7 Security Research PoC
⚠️ This is a proof-of-concept for responsible security disclosure. Do not run untrusted models.
This repository contains a minimal .keras artifact used to demonstrate a deserialization vulnerability in keras-hub RWKVTokenizer (keras-hub==0.26.0).
What this demonstrates
Loading the model with keras.models.load_model() triggers code execution via eval() while parsing tokenizer vocabulary lines.
For safety, the payload is intentionally harmless and only runs:
touch /tmp/pwned
Reproduction
import keras
# safe_mode=True does NOT prevent this issue
obj = keras.models.load_model("poc_for_upload.keras", safe_mode=True)
After loading, /tmp/pwned will exist on the local machine.
Security note
This PoC is provided strictly for coordinated vulnerability disclosure and patch validation.
- Downloads last month
- 14
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
🙋
Ask for provider support