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.