Views
No views yet
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.1import xgboost as xgb
2xgb.Booster().load_model("evil_object_key.ubj")
3# -> access violation (out-of-bounds read) inside XGBoosterLoadModelstr.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.main (3.4.0-dev).