# CVE-2021-25833: A file extension handling issue was found in [server] module of ONLYOFFICE DocumentServer v4.2.0.71-v5.6.0.21.

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 44.9%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-01T15:09:17.000Z
- Modified: 2026-06-17T03:42:29.673Z
- Weaknesses: CWE-22
- Assigned by: mitre

## Description

A file extension handling issue was found in [server] module of ONLYOFFICE DocumentServer v4.2.0.71-v5.6.0.21. The file extension is controlled by an attacker through the request data and leads to arbitrary file overwriting. Using this vulnerability, a remote attacker can obtain remote code execution on DocumentServer.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- onlyoffice document_server: from 4.2.0.71 up to 5.6.0.21

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/merrychap/poc_exploits/tree/master/ONLYOFFICE/CVE-2021-25833> (exploit, third-party-advisory)
- <https://github.com/ONLYOFFICE/DocumentServer> (product, vendor-advisory)
- <https://github.com/ONLYOFFICE/server> (product)
- <https://github.com/ONLYOFFICE/server/blob/v5.6.0.21/DocService/sources/converterservice.js#L200> (third-party-advisory)
- <https://github.com/ONLYOFFICE/server/blob/v5.6.0.21/FileConverter/sources/converter.js#L593> (third-party-advisory)
- <https://github.com/ONLYOFFICE/server/blob/v5.6.0.21/FileConverter/sources/converter.js#L283> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-25833](https://www.cve.org/CVERecord?id=CVE-2021-25833), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-25833](https://nvd.nist.gov/vuln/detail/CVE-2021-25833), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25833 · Whole record: https://cve.day/CVE-2021-25833.json · Rebuilt by cve.day 2026-11-25T22:58:00.101Z
