CVE-2021-25831 Code injection in n/a

Critical 9.8 Published Updated

Remote attackers can achieve code execution on ONLYOFFICE DocumentServer by exploiting file extension handling flaws during PPTT to PPTX conversion.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-25831?

CVE-2021-25831 is a critical code injection vulnerability in n/a, published on 1 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.0.0-9-v5.6.3. An attacker must request the conversion of the crafted file from PPTT into PPTX format. Using the chain of two other bugs related to improper string handling, a remote attacker can obtain remote code execution on DocumentServer.

Which versions are affected by CVE-2021-25831?

It affects 1 product.

Products include Onlyoffice Document Server.

How do I fix CVE-2021-25831?

No fix has been published for CVE-2021-25831 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-25831 being exploited?

There is no known exploitation of CVE-2021-25831 in the wild and no public exploit code.

Sources

Also known as GHSA-m252-hx7q-7p3h.

Is CVE-2021-25831 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free