LibreofficeApplication

CVE-2022-26305

HIGH · 7.5 CVSS v3.1 Published 2022-07-25
Fix available
A fix is available. Upgrade to 7.2.7 / 7.3.2 or later.
See remediation →
82/100
Remediation priority · High
Remotely reachable No privileges

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 · unedited
An Improper Certificate Validation vulnerability in LibreOffice existed where determining if a macro was signed by a trusted author was done by only matching the serial number and issuer string of the used certificate with that of a trusted certificate. This is not sufficient to verify that the macro was actually signed with the certificate. An adversary could therefore create an arbitrary certificate with a serial number and an issuer string identical to a trusted certificate which LibreOffice would present as belonging to the trusted author, potentially leading to the user to execute arbitrary code contained in macros improperly trusted. This issue affects: The Document Foundation LibreOffice 7.2 versions prior to 7.2.7; 7.3 versions prior to 7.3.1.

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 confidence

LibreOffice macro signature verification incorrectly trusted certificates by only matching serial numbers and issuer strings without verifying the cryptographic signature on the macro itself. This allowed attackers to create fraudulent certificates with matching serial/issuer details to impersonate trusted authors and execute arbitrary code via malicious macros.

MitigationUpdate LibreOffice to version 7.2.7 or later, or 7.3.1 or later. Additionally, review and re-sign macros with properly validated certificates after patching.

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
LibreofficeApplication
Affected:>= 7.2.0, < 7.2.7>= 7.3.0, < 7.3.2

CVSS 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
High
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

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 checks

Work through these to decide whether this CVE applies to you.

  1. Check installed LibreOffice version
    Open LibreOffice, go to Help > About LibreOffice (or LibreOffice Writer > About LibreOffice on Mac) to view the exact version number
    Affected if The version is 7.2.0 through 7.2.6, or 7.3.0 through 7.3.1 (these are the vulnerable versions)
  2. Verify macro security settings
    Go to Tools > Options > Security > Macro Security (or LibreOffice > Preferences > Security > Macro Security on Mac) and check the macro execution security level
    Affected if Macros are allowed to run (security level is set to Medium or Low, or macros are generally enabled)
  3. Identify digitally signed macros in documents
    Open any macro-enabled documents (look for .odt, .ods, .odp, .docm, .xlsm files) and check their macro signatures via Tools > Options > Security > Macro Security > Signatures tab
    Affected if Documents contain macros with digital signatures from certificates where the issuer name and serial number match a trusted certificate but the cryptographic signature may not be properly verified

You are affected if your LibreOffice version falls within 7.2.0-7.2.6 or 7.3.0-7.3.1 AND you have macro security settings that permit running signed macros from potentially untrusted sources.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Upgrade available Upgrade to 7.2.7 / 7.3.2 or later
Fixed in 7.2.77.3.2
Interim mitigation

Update LibreOffice to version 7.2.7 or later, or 7.3.1 or later. Additionally, review and re-sign macros with properly validated certificates after patching.

Recommended fix High confidence

LibreOffice 7.2.7 or 7.3.2 (or later stable release)

  1. Check your current LibreOffice version by opening Help > About LibreOffice
  2. For Debian/Ubuntu-based systems: Run 'sudo apt update && sudo apt upgrade libreoffice'
  3. For Red Hat/Fedora-based systems: Run 'sudo dnf update libreoffice'
  4. For macOS: Use the built-in update feature via LibreOffice > Check for Updates, or download from the official website
  5. For Windows: Use Help > Check for Updates or download from https://www.libreoffice.org/download/download/
  6. Verify the upgrade was successful by checking Help > About LibreOffice shows version 7.2.7, 7.3.2, or later
Caveat Standard LibreOffice upgrade considerations apply - test important documents with macros after upgrading; some legacy macro behaviors may change

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Libreoffice Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
11.0 hours of engineering $1,930
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2022-26305 — 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2022-26305 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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