CVE-2022-38745: Apache OpenOffice: Empty entry in Java class path

Published Mar 24, 2023
·
Updated

Apache OpenOffice versions before 4.1.14 may be configured to add an empty entry to the Java class path. This may lead to run arbitrary Java code from the current directory.

Other sources

Fixed in: LibreOffice 7.2.6/7.3.1

Description:

Most versions of LibreOffice support and contain components written in Java. LibreOffice extends the existing Java class path with its own internal classes.

In the affected versions of LibreOffice if the existing class path was empty, then when Java class files are loaded, the current working directory is searched for valid classes before using the embedded versions. If an attacker sends a zip file containing a class file alongside a document then, depending on the file manager or other tool used to open the zip file, when on navigating to the document and launching LibreOffice to open it, the current working directory of LibreOffice may be the directory in which the class file exists, in which case there is a risk that the arbitrary code of the class file could be executed.

In versions >= 7.2.6 (and >= 7.3.1) such unwanted empty paths are not appended to the classpath

References:

https://www.libreoffice.org/about-us/security/advisories/cve-2022-38745/

Red Hat

Affected Software

3 affected componentsFixes available
redhat/LibreOffice<7.2.6
7.2.6
redhat/LibreOffice<7.3.1
7.3.1
Apache OpenOffice<4.1.14

Event History

Mar 24, 2023
CVE Published
via MITRE·03:56 PM
Data Sourced
via MITRE·03:56 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
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 vulnerability ID for this Apache OpenOffice vulnerability?

The vulnerability ID for this Apache OpenOffice vulnerability is CVE-2022-38745.

2

What is the severity rating of CVE-2022-38745?

The severity rating of CVE-2022-38745 is high, with a value of 7.8.

3

What is the description of CVE-2022-38745?

CVE-2022-38745 is a vulnerability in Apache OpenOffice versions before 4.1.14, which allows the addition of an empty entry to the Java class path, potentially leading to the execution of arbitrary Java code from the current directory.

4

How does CVE-2022-38745 affect Apache OpenOffice?

CVE-2022-38745 affects Apache OpenOffice versions before 4.1.14, which are configured to add an empty entry to the Java class path.

5

Are there any fixes available for CVE-2022-38745?

Yes, updating Apache OpenOffice to version 4.1.14 or later will fix the vulnerability CVE-2022-38745.

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