This project is an offline inference library: it loads ONNX models and reads image and PDF files you give it. The realistic risk surface is therefore malicious input files (crafted images or PDFs reaching OpenCV, Pillow, pypdfium2 (PDFium) or onnxruntime) and model files from an untrusted source.
Only download model weights from the official
Hugging Face repository and verify
them against the md5sums.txt shipped in each model folder.
Please report security issues privately to ronen@rivoklabs.com rather than opening a public issue. Include enough detail to reproduce, and give us a reasonable window to respond before disclosing publicly.
If the vulnerability is in an upstream dependency (PaddleOCR, onnxruntime, OpenCV, Pillow, pypdfium2/PDFium), report it to that project as well — we can only pin or patch around it.