CVE-2023-53157: Rosenpass Denial of Service Vulnerability
MODERATECVE-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
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-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.
Upgrade rosenpass to 0.2.1
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
CVE-2023-53157 Affected Rosenpass Versions
1 component(s)| 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?
Which Rosenpass versions are affected?
What version fixes CVE-2023-53157?
Is rosenpass affected?
What is the CVSS score of CVE-2023-53157?
What CWE is associated with CVE-2023-53157?
How can I check crates.io dependencies for CVE-2023-53157?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}