{
    "id": "CVE-2018-16858",
    "published": "2019-03-25 18:29:00",
    "last_modified": "2026-06-17 01:44:55",
    "cvss_score": "7.8",
    "cvss_severity": "HIGH",
    "cvss_version": "3.0",
    "cvss_vector": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
    "cwe": "CWE-356",
    "description": "It was found that libreoffice before versions 6.0.7 and 6.1.3 was vulnerable to a directory traversal attack which could be used to execute arbitrary macros bundled with a document. An attacker could craft a document, which when opened by LibreOffice, would execute a Python method from a script in any arbitrary file system location, specified relative to the LibreOffice install location.",
    "epss_score": "0.67321",
    "epss_percentile": "0.99286",
    "kev": 0,
    "kev_due": null,
    "has_exploit": 1,
    "updated_at": "2026-09-27 18:17:20",
    "priority": {
        "rank": 2,
        "label": "Patch early",
        "why": "A public exploit exists."
    },
    "products": [
        {
            "vendor": "libreoffice",
            "product": "libreoffice"
        }
    ],
    "kev_detail": null,
    "exploits": [
        {
            "source": "exploit-db",
            "ref_id": "46727",
            "title": "LibreOffice < 6.0.7 / 6.1.3 - Macro Code Execution (Metasploit)",
            "date": "2019-04-18",
            "url": "https://www.exploit-db.com/exploits/46727"
        }
    ],
    "refs_list": [
        "http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html",
        "http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html",
        "http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec",
        "https://access.redhat.com/errata/RHSA-2019:2130",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858",
        "https://seclists.org/bugtraq/2019/Aug/28",
        "https://www.exploit-db.com/exploits/46727/",
        "https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/",
        "http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html",
        "http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html",
        "http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec",
        "https://access.redhat.com/errata/RHSA-2019:2130",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858",
        "https://seclists.org/bugtraq/2019/Aug/28",
        "https://www.exploit-db.com/exploits/46727/",
        "https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/"
    ]
}