Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-16858

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-16858
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:56 UTC · Revision 1

Source evidence

CVE-2018-16858

core-osv · Original source

Published 25 Mar 2019, 18:29 UTC

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.

osv:CVE-2018-16858
Complete source record
{
  "id": "5058c3a80a9f4dc53661c4e2dd679a215ce7001d84ce959002947a30e954167c",
  "url": "https://osv.dev/vulnerability/CVE-2018-16858",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-16858",
    "summary": "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.",
    "evidence": "osv:CVE-2018-16858",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2018-16858",
      "aliases": [
        "CVE-2018-16858"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libreoffice/core",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "da2c4acc4e2e51252d2ef1751bc77966be32ec80"
                },
                {
                  "fixed": "15411734fb5201c821167bc19984e3ff06467983"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libreoffice:libreoffice:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.0.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:libreoffice:libreoffice:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.1.0"
                      },
                      {
                        "fixed": "6.1.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "cib-6.1-2",
            "cib-6.1-1",
            "cp-6.0-6",
            "cp-6.0-5",
            "cp-6.0-3",
            "libreoffice-6-1-branch-point",
            "cp-6.0-2",
            "cp-6.0-1",
            "cp-6.0-branch-point",
            "libreoffice-6-0-branch-point",
            "gpg4libre-review-5.4.99",
            "libreoffice-5-4-branch-point",
            "libreoffice-5-3-branch-point",
            "libreoffice-5-2-branch-point",
            "libreoffice-5-1-branch-point",
            "libreoffice-5-0-branch-point",
            "libreoffice-4-4-branch-point",
            "libreoffice-4-3-branch-point",
            "sdremote-2.0.0",
            "libreoffice-4-2-branch-point",
            "libreoffice-4-2-milestone-1",
            "libreoffice-4-1-branch-point",
            "libreoffice-4-0-branch-point",
            "libreoffice-3-6-branch-point",
            "libreoffice-3.5.0.0",
            "libreoffice-3-5-branch-point",
            "windows_build_successful_2011_11_08",
            "MELD_LIBREOFFICE_REPOS"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16858.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:23.201065710Z",
      "provider": "osv",
      "references": [
        "https://seclists.org/bugtraq/2019/Aug/28",
        "https://access.redhat.com/errata/RHSA-2019:2130",
        "https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858",
        "https://www.exploit-db.com/exploits/46727/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-16858",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430870,
  "published_at": "2019-03-25T18:29:00.463+00:00"
}