Downloads · 30 days
0
renaissancefieldlite/tris-tokenizers-json-regex-panic-poc
tris-tokenizers-json-regex-panic-poc is a machine learning model from renaissancefieldlite. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository is a minimal proof-of-concept for a Huntr model-file-format security report.
Downloads · 30 days
0
Access
Public
Updated Jul 2, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py2.3 KB · 41%
From the Hugging Face model README
This repository is a minimal proof-of-concept for a Huntr model-file-format security report.
It contains a serialized tokenizer JSON file with a regex-backed Split pre-tokenizer:
{
"Regex": "(a+)+$"
}
When loaded with Hugging Face tokenizers through Tokenizer.from_file(...) and used on short crafted input, the regex execution path can surface a Rust/PyO3 panic as PanicException.
malicious_tokenizer.json - serialized tokenizer artifact.run_poc.py - local reproduction script with child-process isolation.requirements.txt - tested Python dependency.python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python run_poc.py
Expected behavior:
PanicException: Onig: Regex search error: retry-limit-in-match over.This PoC is for local, responsible security triage only. It does not perform network access, credential access, or remote exploitation. The demonstrated impact is availability / worker stability for systems that load tokenizer JSON artifacts from untrusted model or plugin sources.