CVE-2025-53604: Web push Denial of Service Vulnerability
MODERATECVE-2025-53604 is a MODERATE (CVSS 4.0) denial of service vulnerability (CWE-130: Improper Handling of Length Parameter Inconsistency) affecting Web push libraries in the crates.io ecosystem. The issue involves rust web push is vulnerable to a dos attack via a large integer in a content-length header. Remediation is available by upgrading affected packages to version 0.10.4.
CVE-2025-53604 at a Glance
Security Impact
CVSS: 4.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L).
How to Fix CVE-2025-53604
To remediate this vulnerability, upgrade all affected Web push 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 web-push to 0.10.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for web-push
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-53604, inspect your project dependencies for Web push:
inspect dependencies for web-push
Analyze the terminal output to locate any version of Web push in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.4), 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 Web push, 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-2025-53604 Affected Web push Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
web-push
|
crates.io |
< 0.10.4
|
0.10.4
|
References
Frequently Asked Questions
What is CVE-2025-53604?
Which Web push versions are affected?
What version fixes CVE-2025-53604?
Is web-push affected?
What is the CVSS score of CVE-2025-53604?
What CWE is associated with CVE-2025-53604?
How can I check crates.io dependencies for CVE-2025-53604?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-287x-9rff-qvcg",
"modified" : "2025-07-07T17:25:25Z",
"published" : "2025-07-05T03:30:23Z",
"aliases" : [ "CVE-2025-53604" ],
"summary" : "Rust Web Push is vulnerable to a DoS attack via a large integer in a Content-Length header",
"details" : "The web-push crate before 0.10.4 for Rust allows a denial of service (memory consumption) in the built-in clients via a large integer in a Content-Length header. The patch was initially made available in version 0.10.3, but version 0.10.3 has since been yanked.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "web-push"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.10.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.10.2"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53604"
}, {
"type" : "WEB",
"url" : "https://github.com/pimeys/rust-web-push/pull/68"
}, {
"type" : "WEB",
"url" : "https://github.com/pimeys/rust-web-push/commit/8447ed86bf3f24629abd7022b94104bf3cd64453"
}, {
"type" : "WEB",
"url" : "https://crates.io/crates/web-push"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pimeys/rust-web-push"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2025-0015.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-130" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-07T17:25:25Z",
"nvd_published_at" : "2025-07-05T01:15:28Z"
}
}