LibreOffice – A Python Interpreter (code execution vulnerability CVE-2019-9848)
LibreOffice executed macros that ship with the application without prompting the user, even at the highest macro security setting. An attacker who could get a crafted document opened could therefore have code run without any warning.
insinuator.net
Published on insinuator.net
While waiting for a download to complete, I stumbled across an interesting blogpost. The author describes a flaw in LibreOffice that allowed an attacker to execute code.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the trust model treated built-in system macros as always safe, so they bypassed the macro security prompt entirely.
Impact
Code could be executed without any user prompt, though the text only describes the mechanism and does not demonstrate a working exploit.
What the attacker needed
Victim opens a crafted document; no macro prompt is shown
The fix
The text says the referenced flaw was already fixed, but it does not describe the fix for the silent system-macro behaviour.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A macro is a small program stored inside a document that the office software can run. Normally LibreOffice asks you before running one, but the author found that programs bundled with LibreOffice itself run silently. If one of those bundled programs can be tricked into running attacker code, the victim sees no warning at all.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.