Advisory

RUSTSEC-2025-0015

Also known as: CVE-2025-53604, GHSA-287x-9rff-qvcg, GHSA-fc83-9jwq-gc2m

Summary

Denial of Service via malicious Web Push endpoint

Details

Prior to version 0.10.3, the built-in clients of the web-push crate
eagerly allocated memory based on the Content-Length header returned by the
Web Push endpoint. Malicious Web Push endpoints could return a large
Content-Length without ever having to send as much data, leading to
denial of service by memory exhaustion.

Services providing Web Push notifications typically allow the user to
register an arbitrary endpoint, so the endpoint should not be trusted.

The fixed version 0.10.3 now limits the amount of memory it will allocate
for each response, limits the amount of data it will read from the endpoint,
and returns an error if the endpoint sends too much data.

As before, it is recommended that services add a timeout for each request
to Web Push endpoints.

Severity

Not rated by the source.

Dates

Published
2025-02-16 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

web-push

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.10.3 (semver)

Fixed versions

0.10.3

Fix

  • Fixed version 0.10.3
    cargo update -p web-push --precise 0.10.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences