Downloads · 30 days
0
Abhnv7/huntr-poc-bug01-surrealml-header-allocation-dos
huntr-poc-bug01-surrealml-header-allocation-dos is a machine learning model from Abhnv7. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
surrealml-core SurMlFile::fromfile allocates an attacker-controlled amount of memory (up to 4 GiB) based on an unvalidated 4-byte header length field, before reading any of those bytes. A 5-byte malicious .surml file…
Downloads · 30 days
0
Access
Public
Updated Jun 8, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.txt20.1 KB · 74%
From the Hugging Face model README
surrealml-core SurMlFile::from_file allocates an attacker-controlled amount
of memory (up to 4 GiB) based on an unvalidated 4-byte header length field,
before reading any of those bytes. A 5-byte malicious .surml file aborts the
process under a constrained memory limit.
python3 generate_poc_bug01.py # writes poc_bug01.surml (5 bytes)
# build a tiny harness that calls SurMlFile::from_file(path)
( ulimit -v 1048576; ./harness poc_bug01.surml ) # -> aborts (SIGABRT)
memory allocation of 4294967295 bytes failed → abort (exit 134) under a 1GB/2GB
ulimit -v. See BUG01-actual-log.txt for full backtrace.
PoC SHA256: eed37189a108c4fcf83a77d93e43d7186d3e37f4ea555eb6c54cc887d2387b93