CVE-2024-12425
NoneCVSS
—
EPSS
0.3%
Published
Jan 7, 2025
CISA due date
—
Cloudanix analysis
A problem in popular document software could let someone who sends you a crafted file write data into important places on your computer.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper pathname limitation allowing absolute path traversal that permits writing files to arbitrary locations when the written path is suffixed with .ttf, via documents containing embedded font data.
Why it matters to the business
Potential for system file overwrites or placement of malicious content that could lead to application instability, data corruption, or follow-on compromise, though current exploit likelihood remains low.
How an attack unfolds
An attacker prepares a document in a format supporting embedded fonts, embeds a font reference using an absolute path ending in .ttf, and delivers the file to a target running an affected LibreOffice version; opening the document triggers the write to the attacker-chosen location.
How to fix it
Upgrade LibreOffice 24.8 series to version 24.8.4 or newer; apply vendor patches as they become available for other branches and verify installation after update.
How to confirm the fix worked
Confirm installed LibreOffice version is 24.8.4 or later; attempt to open a test document referencing a controlled .ttf path and verify writes are confined to expected directories.
Typical attack path
- Create document containing embedded font with absolute destination path ending in .ttf
- Distribute document via email, download, or shared storage
- Victim opens document in vulnerable LibreOffice release
- Arbitrary file write occurs on the target system
How to detect it
Review system and application logs for document open events followed by unexpected file writes ending in .ttf; inspect directories for newly created font files outside standard font paths.
What your security team should do
- Prioritize upgrade of all LibreOffice 24.8 installations to 24.8.4 or later
- Restrict opening of untrusted documents from external sources until patched
- Monitor file-creation events for unexpected .ttf files outside font directories
The record
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in The Document Foundation LibreOffice allows Absolute Path Traversal. An attacker can write to arbitrary locations, albeit suffixed with ".ttf", by supplying a file in a format that supports embedded font files. 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-12426 Exposure of Environmental Variables and arbitrary INI file values to an Unauthorized… 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