patchminder
No public exploit found CVE-2021-31939

Remote code executionin Microsoft Office Online Server.

Published 8 Jun 2021 · Updated 3 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
High 7.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 13.3% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 15.0.5353.1000, 16.0.5173.1000, 16.0.10375.20000
In plain words

Microsoft Excel Remote Code Execution Vulnerability

What to do now
  • Upgrade Office Online Server to 16.0.10375.20000 or later.
  • Upgrade Microsoft Excel 2016 to 16.0.5173.1000 or later.
  • Upgrade Microsoft Office 2016 to 16.0.5173.1000 or later.
  • Upgrade Microsoft Excel 2013 Service Pack 1 to 15.0.5353.1000 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Office Online Server
before 16.0.10375.20000
16.0.10375.20000
CVE record
Microsoft Office 2019
Not confirmed
Not confirmed
CVE record
Microsoft 365 Apps for Enterprise
Not confirmed
Not confirmed
CVE record
Microsoft Excel 2016
16.0.0.0 to before 16.0.5173.1000
16.0.5173.1000
CVE record
Microsoft Office 2016
16.0.0 to before 16.0.5173.1000
16.0.5173.1000
CVE record
Microsoft Excel 2013 Service Pack 1
15.0.0.0 to before 15.0.5353.1000
15.0.5353.1000
CVE record
Microsoft Office 2013 Service Pack 1
15.0.0 to before 15.0.5353.1000
15.0.5353.1000
CVE record
Microsoft Office Web Apps Server 2013 Service Pack 1
15.0.1 to before 15.0.5353.1000
15.0.5353.1000
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 30 Apr 2021
    CVE ID reserved by microsoft.
  2. 8 Jun 2021
    Published in the CVE List.
  3. 3 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Office Online Server vulnerabilities

References
Cite this page

Patchminder. CVE-2021-31939: Remote code execution in Microsoft Office Online Server. https://patchminder.com/cve/cve-2021-31939/ (accessed 5 December 2026).