CVE-2026-140393
JSON

6.9medium

actix-http before 3.21.2 Denial of Service via HTTP/1 Keep-Alive Connection Exhaustion

Severity
6.9medium CVSS:4.0 by VulnCheck
Published
Last changed
Assigned by
VulnCheck
Also known as
RUSTSEC-2026-0554GHSA-54pm-2wm5-hpmg

Description

actix-http before 3.21.2, the HTTP library underlying Actix Web, contains a denial of service vulnerability in its HTTP/1 dispatcher because received bytes clear the keep-alive timer while the request head timer applies only to a connection's first request. Unauthenticated remote attackers can send one byte of a second request on keep-alive connections to hold them open indefinitely, exhausting file descriptors and blocking new connections.

Affected

Product or packageVersionsReported by
actix actix-httpbefore 3.21.2
Not affected: 3.21.2
CVE List
actix-http (crates.io)from 0.0.0-0 before 3.21.2RustSec Advisory Database

All scores

VulnCheck5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
VulnCheck6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
RustSec Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Classification

CWE-770

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

actix-http before 3.21.2, the HTTP library underlying Actix Web, contains a denial of service vulnerability in its HTTP/1 dispatcher because received bytes clear the keep-alive timer while the request head timer applies only to a connection's first request. Unauthenticated remote attackers can send one byte of a second request on keep-alive connections to hold them open indefinitely, exhausting file descriptors and blocking new connections.

RustSec Advisory Database

Affected versions of actix-http apply the request header timeout only to the first request on an HTTP/1 connection. When data arrives for a later request, the dispatcher clears the idle keep-alive timer without starting a request header timer.

A remote client without authentication can complete one request, send one byte of a second request, and leave the connection open indefinitely without sending more data. The same problem occurs when a complete pipelined request is followed by a partial request in the same read. Repeating this can exhaust connection or file-descriptor limits and prevent new connections from being accepted. The effect depends on the server's resource limits and upstream connection controls.

Upgrade to actix-http 3.21.2 or later. The fix applies the configured request header timeout to later partial requests, including those left in the buffer after a complete pipelined request. Additional bytes do not renew the deadline. The timeout covers request headers, not upload bodies.

If an upgrade is not possible, disable HTTP keep-alive, for example with HttpServer::keep_alive(KeepAlive::Disabled) in actix-web. Connection limits can reduce resource use but do not make stalled connections expire.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-140393 changed 2026-12-01CVE Terms of Use
RustSec Advisory DatabaseRUSTSEC-2026-0554 changed 2026-12-01CC0-1.0
NVDCVE-2026-140393 changed 2026-12-01Public domain