Downloads · 30 days
0
wonbrand/xgboost-ubjson-oob-read-poc
xgboost-ubjson-oob-read-poc is a machine learning model from wonbrand. 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 is a responsible-disclosure security proof-of-concept, not a usable model. It is hosted here solely so the huntr Model File Vulnerability triage bot can reproduce the issue.
Downloads · 30 days
0
Access
Public
Updated Jul 23, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py2 KB · 42%
From the Hugging Face model README
This is a responsible-disclosure security proof-of-concept, not a usable model. It is hosted here solely so the huntr Model File Vulnerability triage bot can reproduce the issue.
evil_object_key.ubj is a 10-byte crafted UBJSON file that triggers a CWE-125
out-of-bounds read in xgboost's UBJSON model deserializer (UBJReader::DecodeStr,
src/common/json.cc) when parsed by the public model-loading API.
import xgboost as xgb
xgb.Booster().load_model("evil_object_key.ubj")
# -> access violation (out-of-bounds read) inside XGBoosterLoadModel
The UBJSON reader takes a 64-bit length field straight from the file and does
str.resize(bsize); memcpy(&str[0], ptr, bsize); without validating
cursor + bsize <= input.size(). The text JSON reader is bounds-checked; the binary
path is not.
xgboost 3.2.0 (PyPI) and current main (3.4.0-dev).
The bug has been reported to the vendor via the huntr Model File Vulnerability program. This repository may be deleted after triage.