CVE-2021-39228 Details
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`.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e | CVE | PatchThird Party Advisory |
| https://github.com/tremor-rs/tremor-runtime/pull/1217 | CVE | ExploitPatchThird Party Advisory |
| https://github.com/tremor-rs/tremor-runtime/releases/tag/v0.11.6 | CVE | Release NotesThird Party Advisory |
| https://github.com/tremor-rs/tremor-runtime/security/advisories/GHSA-mc22-5q92-8v85 | CVE | MitigationThird Party Advisory |
| https://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e | [email protected] | PatchThird Party Advisory |
| https://github.com/tremor-rs/tremor-runtime/pull/1217 | [email protected] | ExploitPatchThird Party Advisory |
| https://github.com/tremor-rs/tremor-runtime/releases/tag/v0.11.6 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/tremor-rs/tremor-runtime/security/advisories/GHSA-mc22-5q92-8v85 | [email protected] | MitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
| CWE-416 | Use After Free | [email protected] |
| CWE-825 | Expired Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linuxfoundation tremor | >= 0.7.2, < 0.11.6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 30, 2021 | Initial Analysis | [email protected] |