CVE-2024-58265: Snow Unauthenticated Nonce Increment Vulnerability

LOW
Advisory Identifier: GHSA-7g9j-g5jg-3vv3
CVSS 3.1
CWE-440
Published
Advisory Summary

CVE-2024-58265 is a LOW (CVSS 3.1) unauthenticated nonce increment vulnerability (CWE-440: Expected Behavior Violation) affecting Snow libraries in the crates.io ecosystem. The issue involves unauthenticated nonce increment in snow. Remediation is available by upgrading affected packages to version 0.9.5.

CVE-2024-58265 at a Glance

CVE Identifier CVE-2024-58265
GHSA Identifier GHSA-7g9j-g5jg-3vv3
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-440: Expected Behavior Violation
Affected Product Snow
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 3.1

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

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

To remediate this vulnerability, upgrade all affected Snow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

snow fixed: 0.9.5
Upgrade snow to 0.9.5
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 snow

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-58265, inspect your project dependencies for Snow:

inspect dependencies for snow

Analyze the terminal output to locate any version of Snow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.5), 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-440: Expected Behavior Violation, where a feature, api, or function does not perform according to its specification. In Snow, 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 There was a logic bug where unauthenticated payloads could still cause a nonce increment in snow's internal state. For an attacker with the ability to inject packets into the channel Noise is talking over, this allows a denial-of-service type attack which could prevent communication as it causes the sending and receiving side to be expecting different nonce values than would arrive. Note that this only affects those who are using the stateful `TransportState`, not those using `StatelessTransportState`. ### Patches This has been patched in version 0.9.5, and all users are recommended to update. ### References There will be a more formal report of this in the near future.

CVE-2024-58265 Affected Snow Versions

1 component(s)
Fixed Versions:
0.9.5
Product / Package Ecosystem Affected Versions Fixed Version
snow
crates.io
< 0.9.5
0.9.5

References

Frequently Asked Questions

What is CVE-2024-58265?
CVE-2024-58265 is a security vulnerability in Snow involving Unauthenticated Nonce Increment in snow under CWE-440: Expected Behavior Violation.
Which Snow versions are affected?
Affected versions include releases prior to 0.9.5 across affected packages: snow.
What version fixes CVE-2024-58265?
Upgrading to 0.9.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is snow affected?
Yes, snow is affected in releases prior to 0.9.5. Upgrade your dependency to 0.9.5 or later.
What is the CVSS score of CVE-2024-58265?
CVE-2024-58265 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2024-58265?
CVE-2024-58265 is classified under CWE-440: Expected Behavior Violation (A feature, API, or function does not perform according to its specification.).
How can I check crates.io dependencies for CVE-2024-58265?
Run the dependency tree command: 'inspect dependencies for snow'. 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-7g9j-g5jg-3vv3",
  "modified" : "2025-07-28T15:56:29Z",
  "published" : "2024-01-24T20:53:48Z",
  "aliases" : [ "CVE-2024-58265" ],
  "summary" : "Unauthenticated Nonce Increment in snow",
  "details" : "### Impact\nThere was a logic bug where unauthenticated payloads could still cause a nonce increment in snow's internal state. For an attacker with the ability to inject packets into the channel Noise is talking over, this allows a denial-of-service type attack which could prevent communication as it causes the sending and receiving side to be expecting different nonce values than would arrive.\n\nNote that this only affects those who are using the stateful `TransportState`, not those using `StatelessTransportState`.\n\n### Patches\nThis has been patched in version 0.9.5, and all users are recommended to update.\n\n### References\nThere will be a more formal report of this in the near future.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "snow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mcginty/snow/security/advisories/GHSA-7g9j-g5jg-3vv3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-58265"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mcginty/snow/commit/12e8ae55547ae297d5f70599e5c884ea891303eb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mcginty/snow"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0011.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-440" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-24T20:53:48Z",
    "nvd_published_at" : null
  }
}