Vulnerabilities in pkg:golang/github.com/nwaples/rardecode
PACKAGECVE-2025-11579 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting rardecode libraries in the Go ecosystem. The issue involves dos risk due to unrestricted rar dictionary sizes. Remediation is available by upgrading affected packages to version 2.2.0.
pkg:golang/github.com/nwaples/rardecode
Vulnerability advisories affecting package pkg:golang/github.com/nwaples/rardecode. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rwvp-r38j-9rgg | CVE-2025-11579 | MODERATE | rardecode: DoS risk due to unrestricted RAR dictionary sizes |
CVE-2025-11579 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2025-11579
To remediate this vulnerability, upgrade all affected rardecode dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/nwaples/rardecode/v2 to 2.2.0
Upgrade github.com/nwaples/rardecode to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/nwaples/rardecode/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-11579, inspect your project dependencies for rardecode:
inspect dependencies for github.com/nwaples/rardecode/v2
Analyze the terminal output to locate any version of rardecode in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In rardecode, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-11579 Affected rardecode Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/nwaples/rardecode/v2
|
Go |
< 2.2.0
|
2.2.0
|
|
github.com/nwaples/rardecode
|
Go |
≤ 1.1.3
|
|
References
Frequently Asked Questions
What is CVE-2025-11579?
Which rardecode versions are affected?
What version fixes CVE-2025-11579?
Is github.com/nwaples/rardecode/v2 affected?
Is github.com/nwaples/rardecode affected?
What is the CVSS score of CVE-2025-11579?
What CWE is associated with CVE-2025-11579?
How can I check Go dependencies for CVE-2025-11579?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rwvp-r38j-9rgg",
"modified" : "2025-12-11T19:44:54Z",
"published" : "2025-10-10T12:30:57Z",
"aliases" : [ "CVE-2025-11579" ],
"summary" : "rardecode: DoS risk due to unrestricted RAR dictionary sizes",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/nwaples/rardecode/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/nwaples/rardecode"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-11579"
}, {
"type" : "WEB",
"url" : "https://github.com/nwaples/rardecode/commit/52fb4e825c936636f251f7e7deded39ab11df9a9"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nwaples/rardecode"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-4020"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-789" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-11T00:32:44Z",
"nvd_published_at" : "2025-10-10T12:15:37Z"
}
}