The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Sunday, 29 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

CVE-2026-137504: Actix File Upload Flaw Can Crash Servers

By The Daily Byte ·29 Nov 2026 ·3 min read
A top-down photograph of a server rack in the CERN Computer Centre, the kind of server hardware that runs Rust web services built on actix-web

A flaw in actix-multipart, the file-upload component of the Rust web framework actix-web, lets an unauthenticated attacker crash a server by sending it an endless stream of empty upload parts. The flaw, tracked as CVE-2026-137504, was listed in security feeds on 28 November 2026, and the fix is in version 0.8.7.

The vulnerability is in the MultipartForm extractor, the part of actix-web that parses multipart form uploads, the format browsers use to send files and form fields together. Versions before 0.8.7 do not limit the number of parts a single upload can contain. An attacker can stream unlimited parts, including parts containing no data at all, and those parts are not counted against the total_limit or memory_limit settings that are supposed to bound an upload.

Each part pins resources. The disclosure states that attackers can pin 128 KiB buffers per part or force the server to open temporary files, and by streaming enough parts they exhaust the server's memory or its file descriptors until the worker process crashes. Because the attack needs no login and no valid file, any endpoint that accepts multipart uploads with multi-value or multi-file fields is exposed, including ordinary file-upload forms. The result is a denial of service: the worker dies, and legitimate uploads and requests fail with it.

The flaw is rated High, with a CVSS 4.0 base score of 8.7. The weakness is classed as CWE-770, allocation of resources without limits or throttling. The advisory is published as GHSA-48p4-xj33-4fw4 in the actix-web repository. No exploitation in the wild has been reported, and the flaw is not listed in CISA's Known Exploited Vulnerabilities catalogue, but the attack is simple to carry out and the affected configuration is the default one for applications that use MultipartForm with Vec fields for multi-value or multi-file uploads.

The fix is straightforward: upgrade actix-multipart to version 0.8.7 or later, which bounds the number of parts accepted. Applications that cannot upgrade immediately should put a reverse proxy or upload limit in front of affected endpoints, cap request sizes and part counts at the proxy layer, and watch for worker crashes and sudden growth in temporary files, which are the visible signs of this attack.

The flaw is a reminder that limits only protect a system when they are actually applied to every path an attacker can use. Here, the library had limits for total size and memory, but the count of parts slipped past them, and zero-byte parts cost almost nothing to send while still consuming server resources one by one. Any upload handler that counts bytes but not parts has the same shape of weakness, and the fix in 0.8.7 is to count the parts too.

Rust web services are often chosen for performance and reliability, which makes a trivially triggered crash more surprising, not less. Operators running actix-web should check their actix-multipart version, upgrade to 0.8.7, and review any other upload paths that accept multipart data without a part-count limit.

Source
OSV Open Source Vulnerabilities — https://osv.dev/vulnerability/CVE-2026-137504