Skip to content
Heist/ feed
Back to feed
Medium

rust-wasmtime — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-54786

Wasmtime is a runtime for WebAssembly. All versions prior to 24.0.10; versions 25.0.0 through those before 36.0.11; versions 37.0.0 through those before 44.0.3; and versions 45.0.0 and 45.0.1 contain a native implementation of WASIp1 which suffers from a leak in the fd_renumber function where the file descriptor being renumbered to is not properly closed. Wasmtime's implementation erroneously only updated the table of descriptors for WASIp1 and didn't update the underlying table of descriptors used by the host. This behavior means that while fd_renumber works correctly from a guest's perspective it ends up leaking resources in the host that aren't cleaned up until the corresponding Store is destroyed. In a loop, guests can use fd_renumber to cause hosts to exhaust both resources and file descriptors. This bug only affects the native implementation of WASIp1, meaning that only runtimes which load core wasm modules and expose fd_renumber are affected. Runtimes are additionally only affected if they expose the ability to acquire a file descriptor, such as opening a file. For runtimes that deny access to files they are unaffected. This issue has been fixed in versions 24.0.10, 36.0.11, 44.0.3, and 45.0.2.

Products
rust-wasmtime
Affected versions
10.0.1+dfsg-7, 15.0.1+dfsg-4, 16.0.0+dfsg-2, 16.0.0+dfsg-3, 26.0.1+dfsg-3, 26.0.1+dfsg-4, 28.0.1+dfsg-3, 29.0.1+dfsg-5, 36.0.13+dfsg-1, 36.0.5+dfsg-1
Fixed versions
Not specified
CVEs
CVE-2026-54786
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:08 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-54786

core-osv · Original source

Published 1 Jul 2026, 21:17 UTC

Wasmtime is a runtime for WebAssembly. All versions prior to 24.0.10; versions 25.0.0 through those before 36.0.11; versions 37.0.0 through those before 44.0.3; and versions 45.0.0 and 45.0.1 contain a native implementation of WASIp1 which suffers from a leak in the fd_renumber function where the file descriptor being renumbered to is not properly closed. Wasmtime's implementation erroneously only updated the table of descriptors for WASIp1 and didn't update the underlying table of descriptors used by the host. This behavior means that while fd_renumber works correctly from a guest's perspective it ends up leaking resources in the host that aren't cleaned up until the corresponding Store is destroyed. In a loop, guests can use fd_renumber to cause hosts to exhaust both resources and file descriptors. This bug only affects the native implementation of WASIp1, meaning that only runtimes which load core wasm modules and expose fd_renumber are affected. Runtimes are additionally only affected if they expose the ability to acquire a file descriptor, such as opening a file. For runtimes that deny access to files they are unaffected. This issue has been fixed in versions 24.0.10, 36.0.11, 44.0.3, and 45.0.2.

osv:UBUNTU-CVE-2026-54786

rust-wasmtime

Fixed versions: Not specified

rust-wasmtime

Fixed versions: Not specified

rust-wasmtime

Fixed versions: Not specified

rust-wasmtime

Fixed versions: Not specified

Complete source record
{
  "id": "6fcef3ae9a53be1058e88aa9a9ae8e7194a34f89f3784f6d850af98eaf22457f",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-54786",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-54786",
    "summary": "Wasmtime is a runtime for WebAssembly. All versions prior to 24.0.10; versions 25.0.0 through those before 36.0.11; versions 37.0.0 through those before 44.0.3; and versions 45.0.0 and 45.0.1 contain a native implementation of WASIp1 which suffers from a leak in the fd_renumber function where the file descriptor being renumbered to is not properly closed. Wasmtime's implementation erroneously only updated the table of descriptors for WASIp1 and didn't update the underlying table of descriptors used by the host. This behavior means that while fd_renumber works correctly from a guest's perspective it ends up leaking resources in the host that aren't cleaned up until the corresponding Store is destroyed. In a loop, guests can use fd_renumber to cause hosts to exhaust both resources and file descriptors. This bug only affects the native implementation of WASIp1, meaning that only runtimes which load core wasm modules and expose fd_renumber are affected. Runtimes are additionally only affected if they expose the ability to acquire a file descriptor, such as opening a file. For runtimes that deny access to files they are unaffected. This issue has been fixed in versions 24.0.10, 36.0.11, 44.0.3, and 45.0.2.",
    "evidence": "osv:UBUNTU-CVE-2026-54786",
    "products": [
      {
        "name": {
          "value": "rust-wasmtime",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "10.0.1+dfsg-7",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "15.0.1+dfsg-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "16.0.0+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "16.0.0+dfsg-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-wasmtime",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "26.0.1+dfsg-3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-wasmtime",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "36.0.5+dfsg-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "36.0.13+dfsg-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-wasmtime",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "26.0.1+dfsg-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "26.0.1+dfsg-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "28.0.1+dfsg-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "29.0.1+dfsg-5",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "36.0.5+dfsg-1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-54786",
      "aliases": [
        "UBUNTU-CVE-2026-54786"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-wasmtime",
            "purl": "pkg:deb/ubuntu/rust-wasmtime?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "10.0.1+dfsg-7",
            "15.0.1+dfsg-4",
            "16.0.0+dfsg-2",
            "16.0.0+dfsg-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54786.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-cranelift-dev",
                "binary_version": "0.103.0+16.0.0+dfsg-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-wasmtime",
            "purl": "pkg:deb/ubuntu/rust-wasmtime?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "26.0.1+dfsg-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54786.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-cranelift-dev",
                "binary_version": "0.113.1+26.0.1+dfsg-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-wasmtime",
            "purl": "pkg:deb/ubuntu/rust-wasmtime?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "36.0.5+dfsg-1",
            "36.0.13+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54786.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-cranelift-dev",
                "binary_version": "0.123.13+36.0.13+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-wasmtime",
            "purl": "pkg:deb/ubuntu/rust-wasmtime?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "26.0.1+dfsg-3",
            "26.0.1+dfsg-4",
            "28.0.1+dfsg-3",
            "29.0.1+dfsg-5",
            "36.0.5+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54786.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-cranelift-dev",
                "binary_version": "0.123.5+36.0.5+dfsg-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:26.286579140Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-54786"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-54786",
        "https://www.cve.org/CVERecord?id=CVE-2026-54786",
        "https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-3p27-qvp9-27qf"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-54786",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 360539,
  "published_at": "2026-07-01T21:17:00+00:00"
}