Skip to content
Heist/ feed
Back to feed
Medium

Wasmtime can panic when adding excessive fields to a `wasi:http/types.fields` instance

Type: advisorySources: OSV

Wasmtime is a runtime for WebAssembly. Prior to versions 24.0.6, 36.0.6, 4.0.04, 41.0.4, and 42.0.0, Wasmtime's implementation of the `wasi:http/types.fields` resource is susceptible to panics when too many fields are added to the set of headers. Wasmtime's implementation in the `wasmtime-wasi-http` crate is backed by a data structure which panics when it reaches excessive capacity and this condition was not handled gracefully in Wasmtime. Panicking in a WASI implementation is a Denial of Service vector for embedders and is treated as a security vulnerability in Wasmtime. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 patch this vulnerability and return a trap to the guest instead of panicking. There are no known workarounds at this time. Embedders are encouraged to update to a patched version of Wasmtime.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-27572
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 21:52 UTC · Revision 1

Source evidence

Wasmtime can panic when adding excessive fields to a `wasi:http/types.fields` instance

core-osv · Original source

Published 24 Feb 2026, 21:31 UTC

Wasmtime is a runtime for WebAssembly. Prior to versions 24.0.6, 36.0.6, 4.0.04, 41.0.4, and 42.0.0, Wasmtime's implementation of the `wasi:http/types.fields` resource is susceptible to panics when too many fields are added to the set of headers. Wasmtime's implementation in the `wasmtime-wasi-http` crate is backed by a data structure which panics when it reaches excessive capacity and this condition was not handled gracefully in Wasmtime. Panicking in a WASI implementation is a Denial of Service vector for embedders and is treated as a security vulnerability in Wasmtime. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 patch this vulnerability and return a trap to the guest instead of panicking. There are no known workarounds at this time. Embedders are encouraged to update to a patched version of Wasmtime.

osv:CVE-2026-27572
Complete source record
{
  "id": "c107691508b2f67ac4353c35e90efa1cec5a0b379c91636087e9fa04a0f3b0af",
  "url": "https://osv.dev/vulnerability/CVE-2026-27572",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Wasmtime can panic when adding excessive fields to a `wasi:http/types.fields` instance",
    "summary": "Wasmtime is a runtime for WebAssembly. Prior to versions 24.0.6, 36.0.6, 4.0.04, 41.0.4, and 42.0.0, Wasmtime's implementation of the `wasi:http/types.fields` resource is susceptible to panics when too many fields are added to the set of headers. Wasmtime's implementation in the `wasmtime-wasi-http` crate is backed by a data structure which panics when it reaches excessive capacity and this condition was not handled gracefully in Wasmtime. Panicking in a WASI implementation is a Denial of Service vector for embedders and is treated as a security vulnerability in Wasmtime. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 patch this vulnerability and return a trap to the guest instead of panicking. There are no known workarounds at this time. Embedders are encouraged to update to a patched version of Wasmtime.",
    "evidence": "osv:CVE-2026-27572",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-27572",
      "aliases": [
        "CVE-2026-27572",
        "GHSA-243v-98vx-264h",
        "RUSTSEC-2026-0021"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/bytecodealliance/wasmtime",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f18f06e6dea00a78c06913061d952b26ed700b92"
                },
                {
                  "introduced": "0b195ef5db76c02fb5392ec1418c58bdc5537d41"
                },
                {
                  "fixed": "f2054e0911f55af50686bee4da39d15308e14aec"
                },
                {
                  "introduced": "7b3d6ae79e9153a2477668062f5622c10333925f"
                },
                {
                  "fixed": "dc38c5b110862df44e9934ec90dc45e875f18835"
                },
                {
                  "introduced": "3dda916921536c2b5233ec98315b6d05c793a34b"
                },
                {
                  "fixed": "d938a9df47c8e62014c1a12571547411ede6ff5e"
                },
                {
                  "fixed": "301dc7162cca51def19131019af1187f45901c0a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "24.0.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*",
                    "range": [
                      {
                        "introduced": "25.0.0"
                      },
                      {
                        "fixed": "36.0.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*",
                    "range": [
                      {
                        "introduced": "37.0.0"
                      },
                      {
                        "fixed": "40.0.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*",
                    "range": [
                      {
                        "introduced": "41.0.0"
                      },
                      {
                        "fixed": "41.0.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "301dc7162cca51def19131019af1187f45901c0a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f18f06e6dea00a78c06913061d952b26ed700b92"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v24.0.6"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f2054e0911f55af50686bee4da39d15308e14aec"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v36.0.6"
                  },
                  {
                    "range": [
                      {
                        "fixed": "dc38c5b110862df44e9934ec90dc45e875f18835"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v40.0.4"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d938a9df47c8e62014c1a12571547411ede6ff5e"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v41.0.4"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v36.0.5",
            "v41.0.3",
            "v41.0.2",
            "v40.0.3",
            "v41.0.1",
            "dev",
            "v36.0.4",
            "v40.0.2",
            "v41.0.0",
            "v40.0.1",
            "v24.0.5",
            "v36.0.3",
            "v40.0.0",
            "v36.0.2",
            "v24.0.4",
            "v36.0.1",
            "v36.0.0",
            "v24.0.3",
            "v24.0.2",
            "v24.0.1",
            "v24.0.0",
            "v0.35.0",
            "v0.33.0",
            "v0.34.0",
            "v0.32.0",
            "v0.31.0",
            "v0.30.0",
            "v0.29.0",
            "v0.28.0",
            "v0.27.0",
            "v0.26.0",
            "v0.25.0",
            "v0.24.0",
            "v0.23.0",
            "v0.22.0",
            "cranelift-v0.69.0",
            "v0.21.0",
            "v0.20.0",
            "v0.19.0",
            "v0.18.0",
            "v0.17.0",
            "v0.16.0",
            "cranelift-v0.61.0",
            "cranelift-v0.60.0",
            "v0.12.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27572.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.157334690Z",
      "provider": "osv",
      "references": [
        "https://docs.rs/http/1.4.0/http/header/#limitations",
        "https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.6",
        "https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.6",
        "https://github.com/bytecodealliance/wasmtime/releases/tag/v40.0.4",
        "https://github.com/bytecodealliance/wasmtime/releases/tag/v41.0.4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27572.json",
        "https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-243v-98vx-264h",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-27572",
        "https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-770"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27572.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-27572",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490385,
  "published_at": "2026-02-24T21:31:50.186+00:00"
}