CVE-2021-25833

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

published March 1, 2021

CVSS
—
EPSS
44%
Percentile
98.7
In the wild
Unconfirmed
What it is

⚠️ An attacker can hijack file extensions and overwrite any file they choose in ONLYOFFICE DocumentServer! It's like allowing a guest to change the labels on all the important files in your office! 📂 Think of it like a restaurant where a customer gets to rewrite the menu items — they could swap the main course with dessert or even delete their allergies from the record. In this case, the attacker controls file types and can overwrite important documents on the server itself! If exploited, this could lead to arbitrary file overwriting, and even worse, remote code execution! Imagine someone slipping in a rogue recipe that disrupts the entire kitchen — that’s the level of chaos this vulnerability can unleash!

Put simply

Think of it like a restaurant where a customer gets to rewrite the menu items — they could swap the main course with dessert or even delete their allergies from the record. In this case, the attacker controls file types and can overwrite important documents on the server itself! This vulnerability stems from improper file extension handling in ONLYOFFICE DocumentServer versions 4.2.0.71 to 5.6.0.21, allowing attackers to manipulate request data and overwrite files without authorization.

What to do

If exploited, this could lead to arbitrary file overwriting, and even worse, remote code execution! Imagine someone slipping in a rogue recipe that disrupts the entire kitchen — that’s the level of chaos this vulnerability can unleash! To mitigate this risk, upgrade ONLYOFFICE DocumentServer to the latest stable version. Additionally, review your server's file handling policies to ensure strict validation of file types and extensions before processing them. You’ve got this! With a little patching and some due diligence, you can keep your DocumentServer safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.43534 · 98.7th percentile
Published
2021-03-01T15:09Z
EPSS history
Timeline
  • 01 MAR 15:09Z
    A file extension handling issue was found in [server] module of ONLYOFFICE DocumentServer v4.2.0.71-v5.6.0.21
    cvelistv5