Skip to main content

rardecode CVE-2025-11579

MEDIUM
Memory Allocation with Excessive Size Value (CWE-789)
2025-10-10 responsibledisclosure@mattermost.com
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft RAR with oversized dictionary header
  2. Exploit
    Deliver file to RAR-parsing Go service
  3. Execution
    Library allocates unbounded dictionary memory
  4. Impact
    Out-of-memory crash and denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
Exploitation Conditions

Exploitation requires that a target application built on nwaples/rardecode <=2.1.1 actually opens/decodes an attacker-supplied RAR archive - the condition is processing untrusted RAR input, which maps to the CVSS UI:R requirement. The specific trigger is a RAR file whose declared dictionary (window) size exceeds the library's internal maxDictSize, which prior to the fix was not bounded against a configurable per-call limit. Limiting factors: the attacker cannot force exploitation without the application consuming the malicious file (no server-initiated path), there is no authentication or privilege needed on the attacker side (PR:N), and impact is restricted to availability (process OOM crash) - no confidentiality or integrity effect. Deployments that never ingest externally-controlled RAR archives are effectively unaffected.

Impact

This is a genuine but moderate-severity availability issue, not a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, 6.5 MEDIUM) is internally consistent with the description and CWE-789 (memory allocation with excessive size value): an unauthenticated attacker can remotely supply a crafted RAR file, but exploitation requires the victim application/user to actually parse it (UI:R), and impact is confined to availability (C:N/I:N - no data exposure or code execution). All exploitation signals point the same low-urgency direction: EPSS is only 0.37% (29th percentile), there is NO CISA KEV listing, and NO public proof-of-concept is referenced - so no public exploit is identified at time of analysis. No SSVC decision data was provided in the input. The one strong mitigating reality is that the impact ceiling is an out-of-memory crash of the parsing process, not system compromise; for most consumers the realistic worst case is a restartable service crash. Priority should therefore be routine patching, elevated only for services that ingest attacker-controlled RAR archives in long-lived or single-process-critical contexts.

Exploit ScenarioDerived

An attacker crafts a RAR archive whose header declares an enormous dictionary (window) size and delivers it to a Go service that uses nwaples/rardecode <=2.1.1 to extract uploads (e.g., a file-sharing or attachment-processing backend such as the one operated by the reporting party, Mattermost). When the application opens the archive, rardecode attempts to honor the unvalidated dictionary size and allocates excessive memory, crashing the process via OOM. No public exploit code is referenced, but the malicious-input construction is straightforward given the described missing bounds check.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 08, 2026

Out-of-memory denial of service affects applications that use the Go library github.com/nwaples/rardecode 2.1.1 and earlier to unpack RAR archives: a crafted archive can declare an oversized dictionary (window) size that the decoder allocates without enforcing a per-call bound, exhausting memory and crashing the process. Exploitation requires the target application to open the attacker-supplied archive (CVSS UI:R); no credentials are needed on the attacker side (PR:N), and the impact is availability-only (C:N/I:N/A:H, CVSS 6.5). Risk is genuine but moderate: EPSS is 0.37% (29th percentile), there is no CISA KEV entry, and no public exploit code has been identified at time of analysis - deployments that never ingest externally controlled RAR files are effectively unaffected.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - the vendor points to commit 52fb4e825c936636f251f7e7deded39ab11df9a9 (https://github.com/nwaples/rardecode/commit/52fb4e825c936636f251f7e7deded39ab11df9a9), which adds a bounded dictionary check and a MaxDictionarySize option, so affected programs should update their go.mod to a revision at or after that commit and rebuild rather than relying on the 2.1.1 tag. Where rebuilding is not immediately possible, the most effective compensating control is to stop feeding externally controlled RAR archives to the decoder - reject or quarantine .rar uploads at the application boundary, or convert them out-of-process - at the cost of losing that functionality for legitimate users. Additionally, constrain the decoding process so an oversized allocation cannot take down the host: run archive extraction in a separate worker with an explicit memory cgroup/RSS limit or Go runtime memory limit, and wrap rardecode in its own process so an OOM kills only the parser; callers of the fixed library should also invoke the new MaxDictionarySize option with a value matched to expected archives (note the 4 GB default is still generous, values above 64 GB are ignored, and values below 256 kB prevent any file from decoding), and log/alert on decoder errors indicating an over-limit window size as a detection signal.

Affected Packages

go github.com/nwaples/rardecode no fix
go github.com/nwaples/rardecode/v2 fix: 2.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

rardecode is a pure-Go reader for the RAR archive format, widely embedded in Go services and tools (the report came from Mattermost, indicating downstream product use). The RAR file header carries a window/dictionary size field that governs how much memory the decompressor reserves; this is a classic CWE-789 (Memory Allocation with Excessive Size Value) flaw, where an attacker-controlled length drives an allocation. Before the fix, the code only compared the declared window size against a single internal maxDictSize constant and had no configurable per-call ceiling, so an archive declaring a very large window could force a multi-gigabyte allocation and terminate the process with an OOM crash. The upstream patch (commit 52fb4e825c936636f251f7e7deded39ab11df9a9) tightens the check in reader.go to if h.winSize > maxDictSize || h.winSize > pr.opt.maxDictSize, and adds a new MaxDictionarySize(size int64) option in volume.go with DefaultMaxDictionarySize set to 4 << 30 (4 GB), documented to ignore values above 64 GB and to prevent decoding entirely if set below 256 kB. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) confirms a network-reachable path with low attack complexity that still depends on a user or service processing the malicious archive, and scopes the effect purely to availability.

Know when Rardecode gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Remote attacker-supplied file with no auth (AV:N/PR:N/AC:L), but the app must parse it (UI:R); only an OOM crash, so C:N/I:N/A:H, scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 3.3 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Red Hat 5.3 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionNVD

github.com/nwaples/rardecode versions <=2.1.1 fail to restrict the dictionary size when reading large RAR dictionary sizes, which allows an attacker to provide a specially crafted RAR file and cause Denial of Service via an Out Of Memory Crash.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
niche Go RAR-decoding library, limited to apps parsing RAR
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)NVD

cpe:2.3:a:nwaples:rardecode:*:*:*:*:*:go:*:*

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Leap 16.0 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Multi-Linux Manager Client Tools for SLE 12 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy