{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-39228","published":"2021-09-17T14:15:08.413000Z","last_modified":"2026-06-17T04:03:21.453000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-416","CWE-825"],"cpes":[{"criteria":"cpe:2.3:a:linuxfoundation:tremor:*:*:*:*:*:*:*:*","part":"a","vendor":"linuxfoundation","product":"tremor","version_start_including":"0.7.2","version_end_excluding":"0.11.6"}],"cpes_truncated":false,"vendors":["linuxfoundation"],"products":["linuxfoundation/tremor"],"epss":{"score":0.01349,"percentile":0.71642,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-mc22-5q92-8v85","ecosystem":"crates.io","name":"tremor-script","purl":"pkg:cargo/tremor-script","ranges":[{"introduced":"0.7.3","fixed":"0.11.6"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2021-39228/","html_en":"/en/cve/CVE-2021-39228/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-39228","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-39228"},"untrusted":{"vendor_name":"Linuxfoundation","product_name":"Tremor","desc_en":"Tremor is an event processing system for unstructured data. A vulnerability exists between versions 0.7.2 and 0.11.6. This vulnerability is a memory safety Issue when using `patch` or `merge` on `state` and assign the result back to `state`. In this case, affected versions of Tremor and the tremor-script crate maintains references to memory that might have been freed already. And these memory regions can be accessed by retrieving the `state`, e.g. send it over TCP or HTTP. This requires the Tremor server (or any other program using tremor-script) to execute a tremor-script script that uses the mentioned language construct. The issue has been patched in version 0.11.6 by removing the optimization and always cloning the target expression of a Merge or Patch. If an upgrade is not possible, a possible workaround is to avoid the optimization by introducing a temporary variable and not immediately reassigning to `state`.","affected":[{"untrusted_vendor":"tremor-rs","untrusted_product":"tremor-runtime","versions":[]}],"references":[{"url":"https://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/tremor-rs/tremor-runtime/pull/1217","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/tremor-rs/tremor-runtime/releases/tag/v0.11.6","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/tremor-rs/tremor-runtime/security/advisories/GHSA-mc22-5q92-8v85","tags":["Mitigation","Third Party Advisory"]}]}}