CVE-2025-53604: Web push Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-287x-9rff-qvcg
CVSS 4.0
CWE-130
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-53604
GHSA Identifier GHSA-287x-9rff-qvcg
Severity MODERATE
CVSS v3.1 Base Score 4.0
CWE Classification CWE-130: Improper Handling of Length Parameter Inconsistency
Affected Product Web push
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

web-push fixed: 0.10.4
Upgrade web-push to 0.10.4
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 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

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.

CVE-2025-53604 Affected Web push Versions

1 component(s)
Fixed Versions:
0.10.4
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?
CVE-2025-53604 is a security vulnerability in Web push involving Rust Web Push is vulnerable to a DoS attack via a large integer in a Content-Length header under CWE-130: Improper Handling of Length Parameter Inconsistency.
Which Web push versions are affected?
Affected versions include releases prior to 0.10.4 across affected packages: web-push.
What version fixes CVE-2025-53604?
Upgrading to 0.10.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is web-push affected?
Yes, web-push is affected in releases prior to 0.10.4. Upgrade your dependency to 0.10.4 or later.
What is the CVSS score of CVE-2025-53604?
CVE-2025-53604 has a CVSS v3.1 base score of 4.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L.
What CWE is associated with CVE-2025-53604?
CVE-2025-53604 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-2025-53604?
Run the dependency tree command: 'inspect dependencies for web-push'. 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-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"
  }
}