{"id":"EUVD-2021-2093","enisaUuid":"223abd8c-09a0-3fc5-8347-7cc919b5f469","description":"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`.","datePublished":"Sep 17, 2021, 2:00:15 PM","dateUpdated":"Aug 4, 2024, 1:58:18 AM","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","references":"https://github.com/tremor-rs/tremor-runtime/security/advisories/GHSA-mc22-5q92-8v85\nhttps://github.com/tremor-rs/tremor-runtime/pull/1217\nhttps://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e\nhttps://github.com/tremor-rs/tremor-runtime/releases/tag/v0.11.6\n","aliases":"CVE-2021-39228\nGHSA-mc22-5q92-8v85\n","assigner":"GitHub_M","epss":1.35,"enisaIdProduct":[{"id":"a583a5b7-f56b-3c65-ac23-d813e2ccdf13","product":{"name":"tremor-runtime","vendor":{"name":"tremor-rs"}},"product_version":"\u003e 0.7.2, \u003c 0.11.6"}],"enisaIdVendor":[{"id":"46dfd1ea-386f-30e2-9870-08cdff20784e","vendor":{"name":"tremor-rs"}}],"enisaIdVulnerability":[{"id":"4f57b60a-57c2-30e4-bc48-ce7f19a0933e","vulnerability":{"id":"CVE-2021-39228","description":"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`.","datePublished":"Sep 17, 2021, 2:00:15 PM","dateUpdated":"Aug 4, 2024, 1:58:18 AM","status":"PUBLISHED","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","references":"https://github.com/tremor-rs/tremor-runtime/security/advisories/GHSA-mc22-5q92-8v85\nhttps://github.com/tremor-rs/tremor-runtime/pull/1217\nhttps://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e\nhttps://github.com/tremor-rs/tremor-runtime/releases/tag/v0.11.6\n","enisa_id":"EUVD-2021-2093\n","assigner":"GitHub_M","epss":1.35,"dataProcessed":"Nov 24, 2026, 7:27:05 AM","vulnerabilityProduct":[{"id":"e9445f49-921f-3575-9ce1-1399f94d8c0c","product":{"name":"tremor-runtime","vendor":{"name":"tremor-rs"}},"product_version":"\u003e 0.7.2, \u003c 0.11.6"}],"vulnerabilityVendor":[{"id":"8923f065-448b-3893-9e88-eeb97a53043c","vendor":{"name":"tremor-rs"}}]}},{"id":"88551cea-6625-3372-a021-c857ead66e2b","vulnerability":{"id":"GHSA-mc22-5q92-8v85","description":"Memory Safety Issue when using patch or merge on state and assign the result back to state","datePublished":"Sep 20, 2021, 7:52:53 PM","dateUpdated":"Sep 17, 2021, 5:50:18 PM","baseScore":null,"references":"https://github.com/tremor-rs/tremor-runtime/security/advisories/GHSA-mc22-5q92-8v85\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-39228\nhttps://github.com/tremor-rs/tremor-runtime/pull/1217\nhttps://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e\nhttps://github.com/tremor-rs/tremor-runtime\nhttps://github.com/tremor-rs/tremor-runtime/releases/tag/v0.11.6\n","enisa_id":"EUVD-2021-2093\n","aliases":"GHSA-mc22-5q92-8v85\nCVE-2021-39228\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:06:55 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}