{"schemaVersion":3,"id":"CVE-2022-3140","aliases":["MGASA-2022-0400","UBUNTU-CVE-2022-3140","DEBIAN-CVE-2022-3140","DSA-5252-1"],"status":"published","duplicateOf":null,"title":null,"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 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.","dates":{"published":"2022-10-11T00:00:00.000Z","modified":"2024-08-03T01:00:10.521Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.06915,"percentile":0.9404,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":1.2250000000000003,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0569},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.05578,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.05578,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.06915,"percentile":0.9404}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0569,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06915,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.06915,"percentile":0.9404}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","description":"The product constructs a string for a command to be executed by a separate component\nin another control sphere, but it does not properly delimit the\nintended arguments, options, or switches within that command string.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/88.html"}],"affected":[{"vendor":"debian","product":"libreoffice","name":"libreoffice","label":"libreoffice","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libreoffice","purlType":"deb","versions":[{"text":"< 1:7.0.4-4+deb11u4","noFixRecorded":false,"fixedIn":null},{"text":"< 1:7.4.1~rc2-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:7.0.4-4+deb11u4 | < 1:7.4.1~rc2-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libreoffice","name":"libreoffice","label":"libreoffice","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libreoffice","purlType":"deb","versions":[{"text":"< 1:6.0.7-0ubuntu0.18.04.12","noFixRecorded":false,"fixedIn":null},{"text":"< 1:6.4.7-0ubuntu0.20.04.6","noFixRecorded":false,"fixedIn":null},{"text":"< 1:7.3.6-0ubuntu0.22.04.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:6.0.7-0ubuntu0.18.04.12 | < 1:6.4.7-0ubuntu0.20.04.6 | < 1:7.3.6-0ubuntu0.22.04.2","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"11.0","eol":{"isEol":true,"eolDate":"2026-08-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"11","label":"11 (Bullseye)","eolFrom":"2026-08-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"11.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"35","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"libreoffice","product":"libreoffice","name":"libreoffice","label":"libreoffice","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.3.0, < 7.3.6","noFixRecorded":false,"fixedIn":null},{"text":"7.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.3.0, < 7.3.6 | 7.4.0","eol":{"isEol":true,"eolDate":"2023-06-12T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7.4","label":"7.4","eolFrom":"2023-06-12T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"7.4.7.2"},"product":{"name":"libreoffice","label":"LibreOffice","category":"app"}},"hubHref":"/vendor/libreoffice/libreoffice"},{"vendor":"mageia","product":"libmwaw","name":"libmwaw","label":"libmwaw","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/libmwaw","purlType":"rpm","versions":[{"text":"< 0.3.21-1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.21-1.mga8","eol":null,"hubHref":null},{"vendor":"mageia","product":"libreoffice","name":"libreoffice","label":"libreoffice","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/libreoffice","purlType":"rpm","versions":[{"text":"< 7.3.6.2-1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.3.6.2-1.mga8","eol":null,"hubHref":null},{"vendor":"the document foundation","product":"libreoffice","name":"LibreOffice","label":"libreoffice","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.4, < 7.4.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.3, < 7.3.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.4, < 7.4.1 | ≥ 7.3, < 7.3.6","eol":null,"hubHref":"/vendor/the_document_foundation/libreoffice"}],"affectedCount":8,"eol":{"hasEol":true,"count":3},"references":[{"url":"https://www.libreoffice.org/about-us/security/advisories/CVE-2022-3140","label":"www.libreoffice.org/about-us/security/advisories/CVE-2022-3140","hostname":"www.libreoffice.org","tags":["Advisory","Vendor Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5252","label":"www.debian.org/security/2022/dsa-5252","hostname":"www.debian.org","tags":["Vendor Advisory","WEB","REPORT","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TORANVTIWWBH3DNJR4UZATAG67KZOH32/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/202212-04","label":"security.gentoo.org/glsa/202212-04","hostname":"security.gentoo.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html","label":"lists.debian.org/debian-lts-announce/2023/03/msg00022.html","hostname":"lists.debian.org","tags":["Mailing List"]},{"url":"https://advisories.mageia.org/MGASA-2022-0400.html","label":"advisories.mageia.org/MGASA-2022-0400.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30959","label":"bugs.mageia.org/show_bug.cgi?id=30959","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/TORANVTIWWBH3DNJR4UZATAG67KZOH32/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2022-3140","label":"ubuntu.com/security/CVE-2022-3140","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.libreoffice.org/about-us/security/advisories/cve-2022-3140","label":"www.libreoffice.org/about-us/security/advisories/cve-2022-3140","hostname":"www.libreoffice.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5694-1","label":"ubuntu.com/security/notices/USN-5694-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-3140","label":"www.cve.org/CVERecord?id=CVE-2022-3140","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-3140","label":"security-tracker.debian.org/tracker/CVE-2022-3140","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3368-1","OPENSUSE-SU-2024:12452-1","RHSA-2023:0089","RHSA-2023:0304","SUSE-SU-2022:3602-1","SUSE-SU-2022:3650-1","USN-5694-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:12452-1","SUSE-SU-2022:3602-1","SUSE-SU-2022:3650-1","USN-5694-1"]},"timeline":[{"kind":"published","date":"2022-10-11T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T01:00:10.521Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:19:27.711Z","stale":false,"partial":false}}