Vulnerabilities in pkg:golang/github.com/nwaples/rardecode

PACKAGE
Advisory Identifier: GHSA-rwvp-r38j-9rgg
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/nwaples/rardecode

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-11579
GHSA Identifier GHSA-rwvp-r38j-9rgg
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-789: Memory Allocation with Excessive Size Value
Affected Product rardecode
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

github.com/nwaples/rardecode/v2 fixed: 2.2.0
Upgrade github.com/nwaples/rardecode/v2 to 2.2.0
github.com/nwaples/rardecode fixed: Latest secure release
Upgrade github.com/nwaples/rardecode to Latest secure release
Verify Direct and Transitive Dependencies

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

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.

CVE-2025-11579 Affected rardecode Versions

2 component(s)
Fixed Versions:
2.2.0
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?
CVE-2025-11579 is a security vulnerability in rardecode involving DoS risk due to unrestricted RAR dictionary sizes under CWE-789: Memory Allocation with Excessive Size Value.
Which rardecode versions are affected?
Affected versions include releases prior to 2.2.0 across affected packages: github.com/nwaples/rardecode/v2, github.com/nwaples/rardecode.
What version fixes CVE-2025-11579?
Upgrading to 2.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/nwaples/rardecode/v2 affected?
Yes, github.com/nwaples/rardecode/v2 is affected in releases prior to 2.2.0. Upgrade your dependency to 2.2.0 or later.
Is github.com/nwaples/rardecode affected?
Yes, github.com/nwaples/rardecode is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-11579?
CVE-2025-11579 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-11579?
CVE-2025-11579 is classified under CWE-789: Memory Allocation with Excessive Size Value (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.).
How can I check Go dependencies for CVE-2025-11579?
Run the dependency tree command: 'inspect dependencies for github.com/nwaples/rardecode/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}