Vulnerability record · CVE-2023-1183 · published 10 July 2023
CVE-2023-1183: LibreOffice ODB database/script file write via crafted SCRIPT command
Libreoffice · Libreoffice
LibreOffice fails to properly validate input in a crafted ODB file containing a "database/script" entry with a SCRIPT command, allowing file contents to be written to an attacker-chosen location. The flaw combines improper input validation with path traversal, so opening a malicious document can place attacker-controlled files anywhere the user can write.
Description
A flaw was found in the Libreoffice package. An attacker can craft an odb containing a "database/script" file with a SCRIPT command where the contents of the file could be written to a new file whose location was determined by the attacker.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Automated analysis
medium priorityThe flaw allows attacker-chosen file writes but requires local access and user interaction to open a crafted document, and no known exploitation is recorded.
What it is
LibreOffice fails to properly validate input in a crafted ODB file containing a "database/script" entry with a SCRIPT command, allowing file contents to be written to an attacker-chosen location. The flaw combines improper input validation with path traversal, so opening a malicious document can place attacker-controlled files anywhere the user can write.
Impact
An attacker gains the ability to write arbitrary file contents to a location of their choosing on the victim's system, which can overwrite files or plant content for follow-on attacks. The CVSS vector shows high integrity impact with no confidentiality or availability impact.
Attack surface
Reached locally by opening a crafted ODB file in LibreOffice; the vector AV:L/PR:N/UI:R means no privileges are needed but the victim must open the malicious document. No remote or unauthenticated network path is described.
Exploitation
Not listed in CISA KEV and no ransomware associations are documented. EPSS is high (0.64635, 99.2nd percentile), and references include a vendor patch advisory, but no public exploit tag is present in the record.
What to do
- Apply the LibreOffice patch referenced in the vendor security advisory for CVE-2023-1183, and update Fedora and Red Hat Enterprise Linux packages to their fixed builds.
- Treat untrusted ODB/database documents as risky: block or quarantine them at email and web gateways where business use does not require them.
- Restrict write permissions for users who routinely open external documents, and avoid running LibreOffice with elevated privileges.
- Enable LibreOffice macro and scripting security settings that block or warn on embedded script execution.
- Monitor for unexpected file creation in user-writable directories after document opens.
Detection
- Alert on LibreOffice processes writing files to unusual or sensitive paths (startup folders, config directories, shared locations) shortly after opening a document.
- Hunt for ODB files containing embedded "database/script" entries with SCRIPT commands in email attachments and file shares.
- Correlate file-creation events with recent LibreOffice document opens on endpoints to spot attacker-chosen write locations.
- Review endpoint logs for new files appearing in user profile or system directories with content inconsistent with normal application behavior.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.openwall.com/lists/oss-security/2023/12/28/4 | |
| http://www.openwall.com/lists/oss-security/2024/01/03/4 | |
| https://access.redhat.com/security/cve/CVE-2023-1183 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2208506 | Issue TrackingThird Party Advisory |
| https://www.libreoffice.org/about-us/security/advisories/cve-2023-1183/ | PatchVendor Advisory |
| http://www.openwall.com/lists/oss-security/2023/12/28/4 | |
| http://www.openwall.com/lists/oss-security/2024/01/03/4 | |
| https://access.redhat.com/security/cve/CVE-2023-1183 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2208506 | Issue TrackingThird Party Advisory |
| https://www.libreoffice.org/about-us/security/advisories/cve-2023-1183/ | PatchVendor Advisory |
Track CVE-2023-1183 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2023-1183), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.