CVEMETERBack to radar
OFFICIAL RECORD · Rust packages

CVE-2021-21299

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 4.8 · medium

Multiple Transfer-Encoding headers misinterprets request payload

hyper is an open-source HTTP library for Rust (crates.io). In hyper from version 0.12.0 and before versions 0.13.10 and 0.14.3 there is a vulnerability that can enable a request smuggling attack. The HTTP server code had a flaw that incorrectly understands some requests with multiple transfer-encoding headers to have a chunked payload, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that understands the request payload boundary differently can result in "request smuggling" or "desync attacks". To determine if vulnerable, all these things must be true: 1) Using hyper as an HTTP server (the client is not affected), 2) Using HTTP/1.1 (HTTP/2 does not use transfer-encoding), 3) Using a vulnerable HTTP proxy upstream to hyper. If an upstream proxy correctly rejects the illegal transfer-encoding headers, the desync attack cannot succeed. If there is no proxy upstream of hyper, hyper cannot start the desync attack, as the client will repair the headers before forwarding. This is fixed in versions 0.14.3 and 0.13.10. As a workaround one can take the following options: 1) Reject requests that contain a `transfer-encoding` header, 2) Ensure any upstream proxy handles `transfer-encoding` correctly.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 4.789% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 4.8 · published by GitHub_M
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:55:41.735Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:55:41.735ZCVE Program
epssverified2026-11-19T16:04:29.367ZFIRST EPSS
patchesverified2026-11-19T12:52:40.368ZOSV
affectedverified2026-11-19T12:55:41.735ZCVE Program
lifecycleverified2026-11-19T12:55:41.735ZCVE Program

Affected versions and configuration

hyperium hyper; default status: unknown: < 0.13.10 [affected; scheme: unspecified]; >= 0.14.0, < 0.14.3 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "hyperium",
      "product": "hyper",
      "versions": [
        {
          "status": "affected",
          "version": "< 0.13.10"
        },
        {
          "status": "affected",
          "version": ">= 0.14.0, < 0.14.3"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://rustsec.org/advisories/RUSTSEC-2021-0020.html",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        },
        {
          "url": "https://crates.io/crates/hyper",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-03T18:09:15.660Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-6hfq-h8hq-87mf",
  "aliases": [
    "CVE-2021-21299",
    "RUSTSEC-2021-0020"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0.14.0"
            },
            {
              "fixed": "0.14.3"
            }
          ]
        }
      ],
      "package": {
        "name": "hyper",
        "purl": "pkg:cargo/hyper",
        "ecosystem": "crates.io"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-6hfq-h8hq-87mf/GHSA-6hfq-h8hq-87mf.json"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0.13.0"
            },
            {
              "fixed": "0.13.10"
            }
          ]
        }
      ],
      "package": {
        "name": "hyper",
        "purl": "pkg:cargo/hyper",
        "ecosystem": "crates.io"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-6hfq-h8hq-87mf/GHSA-6hfq-h8hq-87mf.json"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0.12.0"
            },
            {
              "fixed": "0.12.36"
            }
          ]
        }
      ],
      "package": {
        "name": "hyper",
        "purl": "pkg:cargo/hyper",
        "ecosystem": "crates.io"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-6hfq-h8hq-87mf/GHSA-6hfq-h8hq-87mf.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/hyperium/hyper/security/advisories/GHSA-6hfq-h8hq-87mf",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21299",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02",
      "type": "WEB"
    },
    {
      "url": "https://github.com/hyperium/hyper",
      "type": "PACKAGE"
    },
    {
      "url": "https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn",
      "type": "WEB"
    },
    {
      "url": "https://rustsec.org/advisories/RUSTSEC-2021-0020.html",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-444"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": null,
    "github_reviewed_at": "2021-08-18T21:07:17Z"
  }
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "RUSTSEC-2021-0020",
  "aliases": [
    "CVE-2021-21299",
    "GHSA-6hfq-h8hq-87mf"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0.12.0"
            },
            {
              "fixed": "0.12.36"
            },
            {
              "introduced": "0.13.0-0"
            },
            {
              "fixed": "0.13.10"
            },
            {
              "introduced": "0.14.0-0"
            },
            {
              "fixed": "0.14.3"
            }
          ]
        }
      ],
      "package": {
        "name": "hyper",
        "purl": "pkg:cargo/hyper",
        "ecosystem": "crates.io"
      },
      "versions": [],
      "database_specific": {
        "cvss": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0020.json",
        "categories": [
          "format-injection"
        ],
        "informational": null
      },
      "ecosystem_specific": {
        "affects": {
          "os": [],
          "arch": [],
          "functions": []
        },
        "affected_functions": null
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://crates.io/crates/hyper",
      "type": "PACKAGE"
    },
    {
      "url": "https://rustsec.org/advisories/RUSTSEC-2021-0020.html",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/hyperium/hyper/commit/8f93123efef5c1361086688fe4f34c83c89cec02",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "license": "CC0-1.0"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarycrates.io / packagehyperNot a distribution channel0.14.3Official record
ecosystem-boundarycrates.io / packagehyperNot a distribution channel0.13.10Official record
ecosystem-boundarycrates.io / packagehyperNot a distribution channel0.12.36Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history