CVE-2024-29511 – Abusing Ghostscript’s OCR device
Ghostscript's OCR device passes the OCRLanguage parameter to Tesseract without path traversal checks, allowing an attacker to load a crafted traineddata file from any path. This enables reading arbitrary files (via debug_file and user_patterns_file) and writing to arbitrary files, bypassing the -dSAFER sandbox.
Ghostscript