CVE-2023-30187
ONLYOFFICE DocumentServer vulnerability analysis and mitigation

Overview

An out of bounds memory access vulnerability was discovered in ONLYOFFICE DocumentServer versions 4.0.3 through 7.3.2. The vulnerability, tracked as CVE-2023-30187, allows remote attackers to execute arbitrary code via a crafted JavaScript file. The issue was disclosed and patched in early 2023 (NVD).

Technical details

The vulnerability exists in the Docbuilder component which uses a v8 engine to execute JavaScript code inside the process. The issue specifically occurs in the SaveReAlloc function where no validation is performed on pos and len parameters. When a user creates a new v8::ArrayBuffer with a specific size and then executes SaveReAlloc with mismatched buffer sizes, it leads to an out-of-bounds memory access condition. The vulnerability received a CVSS v3.1 Base Score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD, GitHub Analysis).

Impact

The vulnerability allows attackers to perform out-of-bounds memory access, which can lead to arbitrary code execution on the affected system. This could potentially allow attackers to take complete control of the system running the vulnerable ONLYOFFICE DocumentServer instance (NVD).

Mitigation and workarounds

The vulnerability has been patched in a security update. The fix involves removing the vulnerable functionality from the SaveAllocNative and SaveReAllocNative methods. Users should upgrade to a patched version of ONLYOFFICE DocumentServer. The patch can be found in the official repository (Core Patch).

Additional resources


SourceThis report was generated using AI

Related ONLYOFFICE DocumentServer vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-30187CRITICAL9.8
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesAug 14, 2023
CVE-2023-30186CRITICAL9.8
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesAug 14, 2023
CVE-2022-48422HIGH7.8
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesMar 19, 2023
CVE-2023-30188HIGH7.5
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesAug 14, 2023
CVE-2023-50883MEDIUM6.1
  • ONLYOFFICE DocumentServerONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesSep 09, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management