Email me

Rust advisories / async-h1

Vulnerability MediumRUSTSEC-2020-0093 · async-h1

RUSTSEC-2020-0093: Async-h1 request smuggling possible with long unread bodies

Short answerA security vulnerability in the async-h1 crate: Async-h1 request smuggling possible with long unread bodies. GitHub rates it Medium. Fixed in 2.3.0: update to a fixed version.

Crateasync-h1
TypeVulnerability
Affected versionsBefore 2.3.0.
Fixed in2.3.0
SeverityMedium (GitHub rating)
Published2020-12-17
Last changed2023-11-08
Also known asCVE-2020-26281, CVE-2020-36202, GHSA-4vr9-8cjf-vf9c, GHSA-c8rq-crxj-mj9m
Affected functionsasync_h1::server::accept, async_h1::server::decode

What to do

  1. See which version you have: cargo tree -i async-h1 (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p async-h1. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example async-h1 = "2.3.0") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

This vulnerability affects any webserver that uses async-h1 behind a reverse proxy, including all such Tide applications.

If the server does not read the body of a request which is longer than some buffer length, async-h1 will attempt to read a subsequent request from the body content starting at that offset into the body.

One way to exploit this vulnerability would be for an adversary to craft a request such that the body contains a request that would not be noticed by a reverse proxy, allowing it to forge forwarded/x-forwarded headers. If an application trusted the authenticity of these headers, it could be misled by the smuggled request.

Another potential concern with this vulnerability is that if a reverse proxy is sending multiple http clients' requests along the same keep-alive connection, it would be possible for the smuggled request to specify a long content and capture another user's request in its body. This content could be captured in a post request to an endpoint that allows the content to be subsequently retrieved by the adversary.

The flaw was corrected in commit 7df79f by ensuring that the request body is always consumed from the tcp stream before attempting to read subsequent keep-alive request headers from it.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ