CVE-2012-2665: Buffer Overflow

Published 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.

Other sources

Multiple heap-based buffer overflows in the XML manifest encryption tag parsing functionality in OpenOffice.org and LibreOffice before 3.5.5 allow remote attackers to cause a denial of service and possibly execute arbitrary code via a crafted Open Document Text (.odt) file with (1) a child tag within an incorrect parent tag, (2) duplicate tags, or (3) a Base64 ChecksumAttribute whose length is not evenly divisible by four.

Affected Software

15 affected components
Apache OpenOffice<3.4.1
LibreOffice Libreoffice<3.5.5
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=11.04
Canonical Ubuntu Linux=11.10
Canonical Ubuntu Linux=12.04
Debian Debian Linux=6.0
Debian Debian Linux=7.0
redhat 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
redhat Enterprise Linux Server From Rhui 6=6.0
redhat Enterprise Linux Workstation=6.0

Event History

May 29, 2012
Data Sourced
02:30 PM
DescriptionSeverityAffected Software
Aug 6, 2012
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-2665?

CVE-2012-2665 has a medium severity rating due to its potential for heap-based buffer overflow exploitation.

2

How do I fix CVE-2012-2665?

To fix CVE-2012-2665, upgrade OpenOffice.org and LibreOffice to versions above 3.4.1 and 3.5.5, respectively.

3

What versions of software are affected by CVE-2012-2665?

CVE-2012-2665 affects versions of OpenOffice.org up to 3.4.1 and LibreOffice up to 3.5.5.

4

Can CVE-2012-2665 be exploited remotely?

Yes, CVE-2012-2665 can be exploited remotely through specially crafted XML documents.

5

What are the potential impacts of CVE-2012-2665?

The potential impacts of CVE-2012-2665 include arbitrary code execution and denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203