Skip to content
Heist/ feed
Back to feed
LowFix available

Out of bounds write in `wasmtime_trap_code` C API function

Type: advisorySources: OSV

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-h84q-m8rr-3v9q. For more information see the GitHub-hosted security advisory.

Products
wasmtime
Affected versions
Not specified
Fixed versions
1.0.2, 2.0.2
CVEs
CVE-2022-39394
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 08:42 UTC · Revision 1

Source evidence

Out of bounds write in `wasmtime_trap_code` C API function

core-osv · Original source

Published 7 Nov 2022, 12:00 UTC

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-h84q-m8rr-3v9q. For more information see the GitHub-hosted security advisory.

osv:RUSTSEC-2022-0097

wasmtime

Fixed versions: 1.0.2, 2.0.2

Complete source record
{
  "id": "9ae06ec0bcb030cad360a1caf2570fbc74c6dfdffab870a262e5dad8cb8b8aef",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2022-0097",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Out of bounds write in `wasmtime_trap_code` C API function",
    "summary": "This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-h84q-m8rr-3v9q. For more information see the GitHub-hosted security advisory.",
    "evidence": "osv:RUSTSEC-2022-0097",
    "products": [
      {
        "name": {
          "value": "wasmtime",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.0.2",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "2.0.2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "low",
    "structured": {
      "id": "RUSTSEC-2022-0097",
      "aliases": [
        "CVE-2022-39394",
        "GHSA-h84q-m8rr-3v9q",
        "RUSTSEC-2022-0097"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "1.0.2"
                },
                {
                  "introduced": "2.0.0"
                },
                {
                  "fixed": "2.0.2"
                }
              ]
            }
          ],
          "package": {
            "name": "wasmtime",
            "purl": "pkg:cargo/wasmtime",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L",
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0097.json",
            "categories": [],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": []
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-12T18:00:06.112472830Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/wasmtime",
        "https://rustsec.org/advisories/RUSTSEC-2022-0097.html",
        "https://github.com/bytecodealliance/wasmtime/commit/087d9d7becf7422b3f872a3bcd5d97bb7ce7ff36"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-39394",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 306358,
  "published_at": "2022-11-07T12:00:00+00:00"
}