LibreOffice documents can include Basic macro libraries stored in a compiled form. A vulnerability exists due to an out-of-bounds write when reading these compiled libraries, caused by insufficient validation of string positions and type checks. Fixed versions perform these validations and reject improperly formed libraries.