CVE-2022-4741
vulnerability analysis and mitigation

Overview

A vulnerability was found in docconv up to version 1.2.0 that affects the functions ConvertDocx/ConvertODT/ConvertPages/ConvertXML/XMLToText. The issue involves uncontrolled memory allocation that can be initiated remotely. The vulnerability was assigned CVE-2022-4741 and was disclosed on December 25, 2022 (NVD).

Technical details

The vulnerability stems from unbounded memory consumption when reading files from ZIP archives. The issue was fixed by implementing a maximum byte limit (20MB) through io.LimitReader on file reading operations across multiple components including docx.go, odt.go, pages.go, and xml.go files (GitHub Commit). The vulnerability has a CVSS v3.1 Base Score of 6.5 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) according to NVD assessment (NVD).

Impact

The vulnerability could lead to uncontrolled memory allocation when processing certain files, potentially resulting in denial of service conditions. The attack can be initiated remotely, making it particularly concerning for systems that process document conversions from untrusted sources (NVD).

Mitigation and workarounds

The vulnerability has been fixed in docconv version 1.2.1. Users are recommended to upgrade to this version or later. The fix implements a 20MB file size limit to prevent unbounded memory consumption (GitHub Release).

Additional resources


SourceThis report was generated using AI

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