The open-source alternative to Microsoft Office has released patches to rectify two critical flaws.