--- license: other language: - en tags: - security - gguf - poc - llama-cpp - huntr library_name: llama-cpp --- # Huntr submission notes This folder contains a status summary and repro steps for a GGUF heap-buffer-overflow in tokenizer metadata parsing. Files - huntr_submission/STATUS.md PoC model file - tmp/gguf_fuzz/llama-spm-bad-scores.gguf Base model file - models/ggml-vocab-llama-spm.gguf PoC generation - The PoC is created by truncating tokenizer.ggml.scores and tokenizer.ggml.token_type by 1 element. - Script used: ```python import struct from pathlib import Path in_path = Path('models/ggml-vocab-llama-spm.gguf') out_path = Path('tmp/gguf_fuzz/llama-spm-bad-scores.gguf') GGUF_TYPE_SIZES = { 0: 1, 1: 1, 2: 2, 3: 2, 4: 4, 5: 4, 6: 4, 7: 1, 8: None, 9: None, 10: 8, 11: 8, 12: 8, } GGUF_TYPE_FORMAT = { 0: '