SecurityContext

CVE-2021-25830: ONLYOFFICE DocumentServer - Remote Code Execution

  • Cve: CVE-2021-25830
  • Name: ONLYOFFICE DocumentServer - Remote Code Execution
  • Description: A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.2.0.236-v5.6.4.13. An attacker must request the conversion of the crafted file from DOCT into DOCX format. Using the chain of two other bugs related to improper string handling, an attacker can achieve remote code execution on DocumentServer.
  • Impact: Attackers can execute arbitrary code remotely on DocumentServer, leading to full system compromise.
  • Remediation: Update to the latest version of ONLYOFFICE DocumentServer that addresses this issue.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.11763
  • Epss percentile: 0.96181
  • Assignee: [email protected]
  • Published at: 2021-03-01T16:15:14Z
  • Age in days: 2094
  • Modified at: 2026-06-17T03:42:29Z
  • Public exploits total: 1
  • References total: 6
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-25830
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
NVD-CWE-noinfo—

Public exploits

UrlSourceAdded date
https://github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25830nvd2021-03-01

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25830Exploit, Third Party Advisory
https://github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/Editor/BinaryFileReaderWriter.cpp#L1918Third Party Advisory
https://github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/Editor/BinaryFileReaderWriter.cpp#L241Third Party Advisory
https://github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.cpp#L343Third Party Advisory
https://github.com/ONLYOFFICE/DocumentServerProduct
https://github.com/ONLYOFFICE/coreProduct

Products

ProductAffectedPlatform boundSourcesUrl
onlyoffice:document_server>= 4.2.0.236, <= 5.6.4.13nonvd/v1/products/onlyoffice/document_server

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-03-01
  • Remote: yes
  • Exposed hosts: 22858
  • Checked, none or zero: known exploited, known exploited by, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports