CVE-2025-65942: Github.com/VictoriaMetrics/VictoriaMetrics Denial of Service Vulnerability

LOW
Advisory Identifier: GHSA-66jq-2c23-2xh5
CVSS 2.7
CWE-770
Published
Advisory Summary

CVE-2025-65942 is a LOW (CVSS 2.7) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Github.com/VictoriaMetrics/VictoriaMetrics libraries in the Go ecosystem. The issue involves victoriametrics' snappy decoder dos vulnerability is causing oom. Remediation is available by upgrading affected packages to version 1.129.1, 1.122.8, 1.110.23.

CVE-2025-65942 at a Glance

CVE Identifier CVE-2025-65942
GHSA Identifier GHSA-66jq-2c23-2xh5
Severity LOW
CVSS v3.1 Base Score 2.7
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Github.com/VictoriaMetrics/VictoriaMetrics
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 2.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
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-65942

To remediate this vulnerability, upgrade all affected Github.com/VictoriaMetrics/VictoriaMetrics 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/VictoriaMetrics/VictoriaMetrics fixed: 1.129.1
Upgrade github.com/VictoriaMetrics/VictoriaMetrics to 1.129.1
github.com/VictoriaMetrics/VictoriaMetrics fixed: 1.122.8
Upgrade github.com/VictoriaMetrics/VictoriaMetrics to 1.122.8
github.com/VictoriaMetrics/VictoriaMetrics fixed: 1.110.23
Upgrade github.com/VictoriaMetrics/VictoriaMetrics to 1.110.23
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/VictoriaMetrics/VictoriaMetrics

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-65942, inspect your project dependencies for Github.com/VictoriaMetrics/VictoriaMetrics:

inspect dependencies for github.com/VictoriaMetrics/VictoriaMetrics

Analyze the terminal output to locate any version of Github.com/VictoriaMetrics/VictoriaMetrics in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.129.1), 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Github.com/VictoriaMetrics/VictoriaMetrics, 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

### Impact Affected versions are vulnerable to DoS attacks because the snappy decoder ignored VictoriaMetrics request size limits allowing malformed blocks to trigger excessive memory use. This could lead to OOM errors and service instability. The fix enforces block-size checks based on MaxRequest limits. ### Patches Versions 1.129.1, 1.122.8, 1.110.23 ### Resources - https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.129.1 - https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.122.8 - https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.110.23 ### Note VictoriaMetrics' security model assumes its APIs are properly secured (e.g. via access control flags or a firewall); this advisory addresses malicious input that should not be possible under a [correctly secured](https://docs.victoriametrics.com/victoriametrics/single-server-victoriametrics/#security) deployment.

CVE-2025-65942 Affected Github.com/VictoriaMetrics/VictoriaMetrics Versions

3 component(s)
Fixed Versions:
1.129.11.122.81.110.23
Product / Package Ecosystem Affected Versions Fixed Version
github.com/VictoriaMetrics/VictoriaMetrics
Go
≥ 1.123.0
< 1.129.1
1.129.1
github.com/VictoriaMetrics/VictoriaMetrics
Go
≥ 1.111.0
< 1.122.8
1.122.8
github.com/VictoriaMetrics/VictoriaMetrics
Go
≥ 1.0.0
< 1.110.23
1.110.23

References

Frequently Asked Questions

What is CVE-2025-65942?
CVE-2025-65942 is a security vulnerability in Github.com/VictoriaMetrics/VictoriaMetrics involving VictoriaMetrics' Snappy Decoder DoS Vulnerability is Causing OOM under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Github.com/VictoriaMetrics/VictoriaMetrics versions are affected?
Affected versions include releases prior to 1.129.1, 1.122.8, 1.110.23 across affected packages: github.com/VictoriaMetrics/VictoriaMetrics.
What version fixes CVE-2025-65942?
Upgrading to 1.129.1, 1.122.8, 1.110.23 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/VictoriaMetrics/VictoriaMetrics affected?
Yes, github.com/VictoriaMetrics/VictoriaMetrics is affected in releases prior to 1.129.1, 1.122.8, 1.110.23. Upgrade your dependency to 1.129.1, 1.122.8, 1.110.23 or later.
What is the CVSS score of CVE-2025-65942?
CVE-2025-65942 has a CVSS v3.1 base score of 2.7 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-65942?
CVE-2025-65942 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Go dependencies for CVE-2025-65942?
Run the dependency tree command: 'inspect dependencies for github.com/VictoriaMetrics/VictoriaMetrics'. 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-66jq-2c23-2xh5",
  "modified" : "2025-12-17T00:35:05Z",
  "published" : "2025-11-25T20:40:13Z",
  "aliases" : [ "CVE-2025-65942" ],
  "summary" : "VictoriaMetrics' Snappy Decoder DoS Vulnerability is Causing OOM",
  "details" : "### Impact\nAffected versions are vulnerable to DoS attacks because the snappy decoder ignored VictoriaMetrics request size limits allowing malformed blocks to trigger excessive memory use. This could lead to OOM errors and service instability. The fix enforces block-size checks based on MaxRequest limits.\n\n### Patches\nVersions 1.129.1, 1.122.8, 1.110.23\n\n### Resources\n - https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.129.1\n - https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.122.8\n - https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.110.23\n \n### Note \nVictoriaMetrics' security model assumes its APIs are properly secured (e.g. via access control flags or a firewall); this advisory addresses malicious input that should not be possible under a [correctly secured](https://docs.victoriametrics.com/victoriametrics/single-server-victoriametrics/#security) deployment.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/VictoriaMetrics/VictoriaMetrics"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.123.0"
      }, {
        "fixed" : "1.129.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/VictoriaMetrics/VictoriaMetrics"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.111.0"
      }, {
        "fixed" : "1.122.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/VictoriaMetrics/VictoriaMetrics"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.110.23"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/VictoriaMetrics/VictoriaMetrics/security/advisories/GHSA-66jq-2c23-2xh5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65942"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VictoriaMetrics/VictoriaMetrics/commit/51b44afd34d2c9a392d4ebedeeb5b4a7f5beca24"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/VictoriaMetrics/VictoriaMetrics"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.110.23"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.122.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.129.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-25T20:40:13Z",
    "nvd_published_at" : "2025-11-25T23:15:47Z"
  }
}