{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-3140","id":"CVE-2022-3140","title":"Macro URL arbitrary script execution","description":"LibreOffice supports Office URI Schemes to enable browser integration of LibreOffice with MS SharePoint server. An additional scheme 'vnd.libreoffice.command' specific to LibreOffice was added. In the affected versions of LibreOffice links using that scheme could be constructed to call internal macros with arbitrary arguments. Which when clicked on, or activated by document events, could result in","descriptionLong":"LibreOffice supports Office URI Schemes to enable browser integration of LibreOffice with MS SharePoint server. An additional scheme 'vnd.libreoffice.command' specific to LibreOffice was added. In the affected versions of LibreOffice links using that scheme could be constructed to call internal macros with arbitrary arguments. Which when clicked on, or activated by document events, could result in arbitrary script execution without warning. This issue affects: The Document Foundation LibreOffice 7.4 versions prior to 7.4.1; 7.3 versions prior to 7.3.6.","published":"2022-10-11T00:00:00.000Z","updated":"2026-06-17T04:58:56.500Z","reserved":"2022-09-06T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"Document Fdn.","metric":{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"NVD"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"}],"rating":"medium","products":["The Document Foundation LibreOffice"],"affectedProducts":[{"vendor":"The Document Foundation","product":"LibreOffice","defaultStatus":null,"versions":[{"version":"7.4","status":"affected","lessThan":"7.4.1","versionType":"custom"},{"version":"7.3","status":"affected","lessThan":"7.3.6","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-20","CWE-88"],"aliases":[],"references":[{"url":"https://www.libreoffice.org/about-us/security/advisories/CVE-2022-3140","tags":["x_transferred","Vendor Advisory","advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5252","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TORANVTIWWBH3DNJR4UZATAG67KZOH32/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/202212-04","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html","tags":["mailing-list","x_transferred","web"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.06962,"epssPercentile":0.94243,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-3140","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3140","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-3140","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-3140","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}