Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-25830

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-25830
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 03:38 UTC · Revision 1

Source evidence

CVE-2021-25830

core-osv · Original source

Published 1 Mar 2021, 16:15 UTC

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.

osv:CVE-2021-25830
Complete source record
{
  "id": "268f422efd1051e51e567c65398d52f5410163cb28010a2b6ab62ddaf8dda203",
  "url": "https://osv.dev/vulnerability/CVE-2021-25830",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-25830",
    "summary": "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.",
    "evidence": "osv:CVE-2021-25830",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-25830",
      "aliases": [
        "CVE-2021-25830"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/onlyoffice/core",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3c73f692d05eb69935f7a0fc8a3835a198ed5b1f"
                },
                {
                  "last_affected": "078aa9c5e7f1f6fb50b5ac76104f48a2692d9e7f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:onlyoffice:document_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.2.0.236"
                      },
                      {
                        "last_affected": "5.6.4.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25830.json"
          }
        }
      ],
      "modified": "2026-10-24T02:46:41.123997473Z",
      "provider": "osv",
      "references": [
        "https://github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/Editor/BinaryFileReaderWriter.cpp#L1918",
        "https://github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/Editor/BinaryFileReaderWriter.cpp#L241",
        "https://github.com/ONLYOFFICE/core/blob/v5.6.4.13/ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.cpp#L343",
        "https://github.com/ONLYOFFICE/DocumentServer",
        "https://github.com/ONLYOFFICE/core",
        "https://github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25830"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-25830",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 428164,
  "published_at": "2021-03-01T16:15:14.293+00:00"
}