CVE-2023-53157: Rosenpass Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-6ggr-cwv4-g7qg
CVSS 5.3
CWE-130
Published
Advisory Summary

CVE-2023-53157 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-130: Improper Handling of Length Parameter Inconsistency) affecting Rosenpass libraries in the crates.io ecosystem. The issue involves remotely exploitable denial of service in rosenpass. Remediation is available by upgrading affected packages to version 0.2.1.

CVE-2023-53157 at a Glance

CVE Identifier CVE-2023-53157
GHSA Identifier GHSA-6ggr-cwv4-g7qg
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-130: Improper Handling of Length Parameter Inconsistency
Affected Product Rosenpass
Package Ecosystem crates.io
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-2023-53157

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

rosenpass fixed: 0.2.1
Upgrade rosenpass to 0.2.1
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 rosenpass

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-53157, inspect your project dependencies for Rosenpass:

inspect dependencies for rosenpass

Analyze the terminal output to locate any version of Rosenpass in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.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-130: Improper Handling of Length Parameter Inconsistency, where the product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data. In Rosenpass, 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

Affected versions of this crate did not validate the size of buffers when attempting to decode messages. This allows an attacker to trigger a panic by sending a UDP datagram with a 1 byte payload over network. This flaw was corrected by validating the size of the buffers before attempting to decode the message.

CVE-2023-53157 Affected Rosenpass Versions

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

References

Frequently Asked Questions

What is CVE-2023-53157?
CVE-2023-53157 is a security vulnerability in Rosenpass involving Remotely exploitable denial of service in Rosenpass under CWE-130: Improper Handling of Length Parameter Inconsistency.
Which Rosenpass versions are affected?
Affected versions include releases prior to 0.2.1 across affected packages: rosenpass.
What version fixes CVE-2023-53157?
Upgrading to 0.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rosenpass affected?
Yes, rosenpass is affected in releases prior to 0.2.1. Upgrade your dependency to 0.2.1 or later.
What is the CVSS score of CVE-2023-53157?
CVE-2023-53157 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-2023-53157?
CVE-2023-53157 is classified under CWE-130: Improper Handling of Length Parameter Inconsistency (The product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data.).
How can I check crates.io dependencies for CVE-2023-53157?
Run the dependency tree command: 'inspect dependencies for rosenpass'. 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-6ggr-cwv4-g7qg",
  "modified" : "2025-07-28T15:08:43Z",
  "published" : "2023-12-21T23:15:57Z",
  "aliases" : [ "CVE-2023-53157" ],
  "summary" : "Remotely exploitable denial of service in Rosenpass",
  "details" : "Affected versions of this crate did not validate the size of buffers when attempting to decode messages.\n\nThis allows an attacker to trigger a panic by sending a UDP datagram with a 1 byte payload over network.\n\nThis flaw was corrected by validating the size of the buffers before attempting to decode the message.",
  "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" : "crates.io",
      "name" : "rosenpass"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-53157"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rosenpass/rosenpass/commit/93439858d1c44294a7b377f775c4fc897a370bb2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rosenpass/rosenpass"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2023-0077.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-130" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-21T23:15:57Z",
    "nvd_published_at" : null
  }
}