CVE-2022-4741: docconv vulnerable to Memory Allocation with Excessive Size Value
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.1733%
CWE
Published
12/25/2022
Updated
3/1/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/sajari/docconv | go | < 1.2.1 | 1.2.1 |
| code.sajari.com/docconv | go | < 1.2.1 | 1.2.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from uncontrolled memory allocation when processing untrusted inputs. The commit 42bcff6 adds size limits to all these functions by wrapping readers with io.LimitReader. The affected functions are explicitly named in vulnerability descriptions and correspond to files modified in the patch. Each was using unbounded ReadAll/Decoder operations prior to the fix, making them clear vectors for memory exhaustion attacks.