The issue occurs when LibreOffice executes the database/script file that is part of a base document. If this file contains a command like SCRIPT '../../../../../../../../../../../tmp/ohai', it will write the current contents of the database script to that file once a database connection is established.
Created libreoffice tracking bugs for this issue: Affects: fedora-all [bug 2215918]
I cannot view the embargoed BZ, and thus cannot work on this.
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2023:6508 https://access.redhat.com/errata/RHSA-2023:6508
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2023:6933 https://access.redhat.com/errata/RHSA-2023:6933