An issue was discovered in Artifex Ghostscript before 10.05.0. The DOCXWRITE TXTWRITE device has a text buffer overflow via long characters to devices/vector/doc_common.c.
Why is this issue only rated a medium risk? It is highly critical: receiving a document via email and opening it with LibreOffice directly leads to embedded code being executed! The needed exploit code is public, I'll attached a demo.odt document for you to try, it only opens Gnome Calculator. For Fedora 41 (stable) there's already a patched version of Ghostscript in testing, can you please expedite the move to stable? Thank you very much!
Created attachment 2083389 [details] Demo exploit document which opens Gnome calculator on Fedora 41