LibreOffice is typically bundled with LibreLogo, a programmable turtle vector graphics script, which can execute arbitrary python commands contained with the document it is launched from. Protection was added, to address CVE-2019-9848, to block calling LibreLogo from document event script handers, e.g. mouse over. However LibreOffice also has a separate feature where documents can specify that pre-installed scripts can be executed on various global script events such as document-open, etc. In the fixed versions, global script event handlers are validated equivalently to document script event handlers. This issue affects: Document Foundation LibreOffice versions prior to 6.2.6.
https://www.libreoffice.org/about-us/security/advisories/CVE-2019-9851
https://www.debian.org/security/2019/dsa-4501
https://usn.ubuntu.com/4102-1/
https://seclists.org/bugtraq/2019/Aug/28
https://lists.debian.org/debian-lts-announce/2019/10/msg00005.html
http://packetstormsecurity.com/files/154168/LibreOffice-Macro-Python-Code-Execution.html
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00067.html
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00006.html