---
id: CVE-2022-31146
aliases:
  - RUSTSEC-2022-0100
  - GHSA-5fhj-g3p3-pq9g
title: Use After Free with `externref`s in Wasmtime
summary: Use After Free with `externref`s in Wasmtime
severity: none
vendor: wasmtime
product: wasmtime
ecosystem: rust
affected:
  - 'wasmtime >= 0.0.0-0, < 0.38.2'
patched:
  - wasmtime 0.38.2
published: '2022-07-12'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T18:00:06.108579592Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/RUSTSEC-2022-0100'
references:
  - url: 'https://crates.io/crates/wasmtime'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2022-0100.html'
  - url: >-
      https://github.com/bytecodealliance/wasmtime/commit/2ba4bce5cc719e5a74e571a534424614e62ecc41
tags:
  - osv
  - rust
epss: 0.0125
epssPercentile: 0.69479
ingestedAt: '2026-10-13T11:45:30.160Z'
---

## Overview

This is an entry in the RustSec database for the Wasmtime security advisory
located at
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-5fhj-g3p3-pq9g.
For more information see the GitHub-hosted security advisory.

## Affected packages

- `wasmtime >= 0.0.0-0, < 0.38.2`

## Remediation

Upgrade to a patched release:

- `wasmtime 0.38.2`
