CVE-2022-3140
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedLibreOffice 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceLibreOffice's 'vnd.libreoffice.command' URI scheme allows constructed links to invoke internal macros with arbitrary arguments. When users click these links or trigger them via document events, arbitrary script executes silently without any warning prompt.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 11.0= 35>= 7.3.0, < 7.3.6= 7.4.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Confirm LibreOffice installation and versionRun ' libreoffice --version ' or check installed packages: dpkg -l | grep libreoffice (Debian) or rpm -qa | grep libreoffice (Fedora)Affected if Version is 7.3.0 through 7.3.6 inclusive, or exactly 7.4.0
-
Verify URI scheme handler registrationCheck if the vnd.libreoffice.command protocol handler is registered on the system. On Linux, examine /usr/share/applications or ~/.local/share/applications for .desktop files containing 'vnd.libreoffice.command' in the Protocol= fieldAffected if The URI scheme handler exists and is registered, allowing external links to trigger LibreOffice actions
-
Check macro security settingsOpen LibreOffice > Tools > Options > Security > Macro Security. Note the macro security level setting (Low, Medium, High, Very High)Affected if Macro security is set to Low or Medium, permitting silent macro execution without warnings
-
Inspect documents for embedded URI linksSearch document files (.odt, .ods, .odp) for the string 'vnd.libreoffice.command' using: grep -r 'vnd.libreoffice.command' /path/to/documents/Affected if Documents contain or reference the vnd.libreoffice.command URI scheme with macro arguments
-
Review document event bindingsExamine LibreOffice documents for event handlers. Open .odt/.ods files as ZIP archives and inspect content.xml for <script:event> elements with vnd.libreoffice.command: URIsAffected if Documents contain event bindings that execute macros via the vulnerable URI scheme
A user is affected if they have LibreOffice 7.3.0-7.3.6 or 7.4.0 installed AND have documents or are likely to click links that use the vnd.libreoffice.command URI scheme to trigger macros.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped7.3.6
Upgrade to LibreOffice 7.4.1+, 7.3.6+, or current supported version to patch the URI scheme handling. Restrict macro execution policies organization-wide as an additional defense-in-depth measure.
LibreOffice 7.4.1+ or LibreOffice 7.3.6+
- 1. Verify current LibreOffice version by opening LibreOffice and navigating to Help > About LibreOffice (or running 'libreoffice --version' in terminal)
- 2. For LibreOffice 7.4.x: Upgrade to version 7.4.1 or later
- 3. For LibreOffice 7.3.x: Upgrade to version 7.3.6 or later
- 4. On Debian 11 (bullseye): Run 'sudo apt update && sudo apt upgrade libreoffice' to obtain fixed packages
- 5. On Fedora 35: Run 'sudo dnf update libreoffice' to obtain fixed packages
- 6. After upgrade, verify the new version is installed: 'libreoffice --version'
- 7. Restart any running LibreOffice instances
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation1.0 h
- Implementation1.0 h
- Testing1.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,200.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2022-3140 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2022-3140 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data