Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-39228

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`.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-39228
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:53 UTC · Revision 1

Source evidence

CVE-2021-39228

core-osv · Original source

Published 17 Sept 2021, 14:15 UTC

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`.

osv:CVE-2021-39228
Complete source record
{
  "id": "f766898feb9c4dc98d0bd72017652c54018c5ff5f2bc8dbc0629e347efa41a67",
  "url": "https://osv.dev/vulnerability/CVE-2021-39228",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-39228",
    "summary": "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`.",
    "evidence": "osv:CVE-2021-39228",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-39228",
      "aliases": [
        "CVE-2021-39228",
        "GHSA-mc22-5q92-8v85"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/tremor-rs/tremor-runtime",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "074f6647db6d615715a24081486fd442be84f204"
                },
                {
                  "fixed": "1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:tremor:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.7.2"
                      },
                      {
                        "fixed": "0.11.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "074f6647db6d615715a24081486fd442be84f204"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.11.6"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.11.5",
            "v0.11.4",
            "v0.11.3",
            "v0.11.2",
            "v0.11.1",
            "v0.11.0",
            "v0.10.2",
            "0.10.2",
            "v0.10.1",
            "v0.10.0",
            "v0.9.5-rc.2",
            "v0.9.5-rc.1",
            "v0.9.4",
            "v0.9.3",
            "v0.9.2",
            "v0.9.2-alpha.2",
            "v0.9.1",
            "v0.9.0",
            "v0.8.0",
            "v0.7.3",
            "v0.7.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-39228.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:54.144397837Z",
      "provider": "osv",
      "references": [
        "https://github.com/tremor-rs/tremor-runtime/releases/tag/v0.11.6",
        "https://github.com/tremor-rs/tremor-runtime/security/advisories/GHSA-mc22-5q92-8v85",
        "https://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e",
        "https://github.com/tremor-rs/tremor-runtime/pull/1217"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-39228",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386421,
  "published_at": "2021-09-17T14:15:08.413+00:00"
}