First published: Tue May 29 2012(Updated: )
Multiple heap-based buffer overflow flaws were found in the XML manifest encryption handling code of OpenOffice.org and LibreOffice: 1) Previously it was not checked if the particular tag was contained within expected parent tag, leading to possibility of child tag handler being able to write its data into different (than expected) parent handler sequence, leading to heap buffer overflow, 2) also a fixed size sequence was allocated to record properties of a particular XML tag, associated with XML element. By duplicating certain tags in XML manifest it was possible to write past the heap-based buffer bounds, 3) yet, the Base64 decoder implementation incorrectly assumed the length of ChecksumAttribute (input buffer) to be evenly divisible by 4, leading into the storage for output (Base64 decoded) buffer to be underallocated, resulting into heap buffer overflow. A remote attacker could provide a specially-crafted Open Document Text (.odt) file, that when opened would cause OpenOffice.org / LibreOffice to crash or, potentially execute arbitrary code with the privileges of the user running a tool from the suite.
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
Apache OpenOffice | <3.4.1 | |
The Document Foundation LibreOffice | <3.5.5 | |
Ubuntu Linux | =10.04 | |
Ubuntu Linux | =11.04 | |
Ubuntu Linux | =11.10 | |
Ubuntu Linux | =12.04 | |
Debian GNU/Linux | =6.0 | |
Debian GNU/Linux | =7.0 | |
Red Hat Enterprise Linux | =6.0 | |
redhat enterprise Linux desktop | =6.0 | |
redhat enterprise Linux for ibm z systems | =6.0 | |
redhat enterprise Linux for power big endian | =6.0 | |
redhat enterprise Linux server | =6.0 | |
Red Hat Enterprise Linux Server from RHUI 6 | =6.0 | |
redhat enterprise Linux workstation | =6.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2012-2665 has a medium severity rating due to its potential for heap-based buffer overflow exploitation.
To fix CVE-2012-2665, upgrade OpenOffice.org and LibreOffice to versions above 3.4.1 and 3.5.5, respectively.
CVE-2012-2665 affects versions of OpenOffice.org up to 3.4.1 and LibreOffice up to 3.5.5.
Yes, CVE-2012-2665 can be exploited remotely through specially crafted XML documents.
The potential impacts of CVE-2012-2665 include arbitrary code execution and denial of service.