Can you supply more details. Secunia has a paywall.
Macros are a well know security hole in all office suites. They potentially allow arbitrary code to be run on an end users computer when the file is opened. For older MS office suites, the default was to run all macros when the file is opened. Recent (after 2005 or so) the default behavior was changed to only allow "trusted" macros the privilege of being allowed to run. I do not know how common this was with other office programs/suites of the same vintage.
I believe LO has always used the model of the "trusted macro only" being granted privileges by default.
Under TOOLS>OPTIONS>LibreOffice/Security click on "Macro Security". Set the security level to high or very high. This will restrict macros from running unless they trusted. This setting works for any macros.