CVE-2024-12426
NoneCVSS
—
EPSS
0.5%
Published
Jan 7, 2025
CISA due date
—
Cloudanix analysis
Opening a specially made document in LibreOffice could quietly send private computer settings to someone outside the organization.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
Specially crafted URLs in documents expand environment variables and arbitrary INI file values, allowing sensitive data to be sent to a remote server when the document is opened.
Why it matters to the business
Attackers can obtain private configuration and environment details from users who open malicious documents, increasing risk of further targeted attacks or credential exposure.
How an attack unfolds
An attacker embeds URLs referencing environment variables or INI values inside a document; when a victim opens the file in an affected LibreOffice version the values are expanded and the resulting request exfiltrates the data to an attacker-controlled server.
How to fix it
Upgrade LibreOffice to version 24.8.4 or later; disable automatic expansion of environment variables in document links if a configuration option exists.
How to confirm the fix worked
Confirm LibreOffice reports version 24.8.4 or higher; attempt to open a test document containing an environment-variable URL and verify the variable is no longer expanded in the resulting network request.
Typical attack path
- Create a document containing malicious URLs that reference %ENV% variables or INI keys
- Host or deliver the document via email, shared drive or web link
- Victim opens the document in LibreOffice 24.8.x
- LibreOffice expands the references and performs an outbound request containing the sensitive values
How to detect it
Review network logs for unexpected outbound connections initiated by LibreOffice shortly after document open events; inspect proxy or firewall logs for URLs containing expanded environment-variable patterns.
What your security team should do
- Prioritize patching all LibreOffice 24.8 installations to 24.8.4 within the next 30 days
- Block or monitor outbound traffic from LibreOffice processes to untrusted destinations
- Add user awareness guidance about opening documents from unknown sources
The record
Exposure of Environmental Variables and arbitrary INI file values to an Unauthorized Actor vulnerability in The Document Foundation LibreOffice. URLs could be constructed which expanded environmental variables or INI file values, so potentially sensitive information could be exfiltrated to a remote server on opening a document containing such links. This issue affects LibreOffice: from 24.8 before < 24.8.4.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libreoffice | 0 | No fix |
| Debian:11 | libreoffice | 0 | 1:7.0.4-4+deb11u12 |
| Debian:12 | libreoffice | 0 | No fix |
| Debian:12 | libreoffice | 0 | 4:7.4.7-1+deb12u6 |
| Debian:13 | libreoffice | 0 | 4:24.8.4-1 |
| Mageia:9 | libreoffice | 0 | 24.2.7.2-1.mga9 |
| Ubuntu:20.04:LTS | libreoffice | 0 | No fix |
| Ubuntu:20.04:LTS | libreoffice | 0 | 1:6.4.7-0ubuntu0.20.04.13 |
| Ubuntu:22.04:LTS | libreoffice | 0 | No fix |
| Ubuntu:22.04:LTS | libreoffice | 0 | 1:7.3.7-0ubuntu0.22.04.8 |
| Ubuntu:24.04:LTS | libreoffice | 0 | No fix |
| Ubuntu:24.04:LTS | libreoffice | 0 | 4:24.2.7-0ubuntu0.24.04.2 |
| Ubuntu:24.10 | libreoffice | 0 | No fix |
Related vulnerabilities
- CVE-2024-12425 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… Also affects libreoffice
- CVE-2024-7788 Improper Digital Signature Invalidation vulnerability in Zip Repair Mode of The Document… Also affects libreoffice
- CVE-2021-25636 LibreOffice supports digital signatures of ODF documents and macros within documents… Also affects libreoffice
- CVE-2021-25633 LibreOffice supports digital signatures of ODF documents and macros within documents… Also affects libreoffice
- CVE-2017-3157 By exploiting the way Apache OpenOffice before 4.1.4 renders embedded objects, an… Also affects libreoffice
- CVE-2017-12607 A vulnerability in OpenOffice's PPT file parser before 4.1.4, and specifically in… Also affects libreoffice
- CVE-2016-10327 LibreOffice before 2016-12-22 has an out-of-bounds write caused by a heap-based buffer… Also affects libreoffice
- CVE-2016-4324 Use-after-free vulnerability in LibreOffice before 5.1.4 allows remote attackers to… Also affects libreoffice