Downloads · 30 days
0
wulonchia/mfv-avro-enum-oob
mfv-avro-enum-oob is a machine learning model from wulonchia. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
CVE: TBD (submitted to Huntr) Target: Apache Avro C library (lang/c) Vulnerability: Unvalidated ENUM index → uninitialized pointer read → SEGV / info-leak
Downloads · 30 days
0
Access
Public
Updated Jul 5, 2026
Repo size
5 B
Likes
0
Public
Click a slice to open those files.
.py2.4 KB · 50%
From the Hugging Face model README
CVE: TBD (submitted to Huntr)
Target: Apache Avro C library (lang/c)
Vulnerability: Unvalidated ENUM index → uninitialized pointer read → SEGV / info-leak
avro_poc.py — generates malicious Avro binary datum with out-of-range enum indexavro_enum_oob.bin — pre-built payload (enum index=0x7fffffff, 5 bytes){"type":"enum","name":"E","symbols":["A","B"]}
lang/c/src/value-read.c reads enum index via read_long() and passes it to
avro_value_set_enum() without bounds-checking against the symbol count.
avro_schema_enum_get() (schema.c:534) then performs st_lookup() which
fails silently, returning an uninitialized stack union reinterpreted as char*.
The JSON serializer dereferences this pointer → SEGV or OOB read.