CVE-2024-2689: Github.com/temporalio/temporal Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-wmxc-v39r-p9wf
CVSS 4.4
CWE-20
Published
Advisory Summary

CVE-2024-2689 is a MODERATE (CVSS 4.4) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Github.com/temporalio/temporal libraries in the Go ecosystem. The issue involves temporal server denial of service. Remediation is available by upgrading affected packages to version 1.22.7, 1.21.6, 1.20.5.

CVE-2024-2689 at a Glance

CVE Identifier CVE-2024-2689
GHSA Identifier GHSA-wmxc-v39r-p9wf
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/temporalio/temporal
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-2689

To remediate this vulnerability, upgrade all affected Github.com/temporalio/temporal dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/temporalio/temporal fixed: 1.22.7
Upgrade github.com/temporalio/temporal to 1.22.7
github.com/temporalio/temporal fixed: 1.21.6
Upgrade github.com/temporalio/temporal to 1.21.6
github.com/temporalio/temporal fixed: 1.20.5
Upgrade github.com/temporalio/temporal to 1.20.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/temporalio/temporal

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-2689, inspect your project dependencies for Github.com/temporalio/temporal:

inspect dependencies for github.com/temporalio/temporal

Analyze the terminal output to locate any version of Github.com/temporalio/temporal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.22.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/temporalio/temporal, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Denial of Service in Temporal Server prior to version 1.20.5, 1.21.6, and 1.22.7 allows an authenticated user who has permissions to interact with workflows and has crafted an invalid UTF-8 string for submission to potentially cause a crashloop. If left unchecked, the task containing the invalid UTF-8 will become stuck in the queue, causing an increase in queue lag. Eventually, all processes handling these queues will become stuck and the system will run out of resources. The workflow ID of the failing task will be visible in the logs, and can be used to remove that workflow as a mitigation. Version 1.23 is not impacted. In this context, a user is an operator of Temporal Server.

CVE-2024-2689 Affected Github.com/temporalio/temporal Versions

3 component(s)
Fixed Versions:
1.22.71.21.61.20.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/temporalio/temporal
Go
≥ 1.22.0-rc1
< 1.22.7
1.22.7
github.com/temporalio/temporal
Go
≥ 1.21.0
< 1.21.6
1.21.6
github.com/temporalio/temporal
Go
< 1.20.5
1.20.5

References

Frequently Asked Questions

What is CVE-2024-2689?
CVE-2024-2689 is a security vulnerability in Github.com/temporalio/temporal involving Temporal Server Denial of Service under CWE-20: Improper Input Validation.
Which Github.com/temporalio/temporal versions are affected?
Affected versions include releases prior to 1.22.7, 1.21.6, 1.20.5 across affected packages: github.com/temporalio/temporal.
What version fixes CVE-2024-2689?
Upgrading to 1.22.7, 1.21.6, 1.20.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/temporalio/temporal affected?
Yes, github.com/temporalio/temporal is affected in releases prior to 1.22.7, 1.21.6, 1.20.5. Upgrade your dependency to 1.22.7, 1.21.6, 1.20.5 or later.
What is the CVSS score of CVE-2024-2689?
CVE-2024-2689 has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-2689?
CVE-2024-2689 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2024-2689?
Run the dependency tree command: 'inspect dependencies for github.com/temporalio/temporal'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wmxc-v39r-p9wf",
  "modified" : "2025-02-28T17:42:50Z",
  "published" : "2024-04-04T00:33:11Z",
  "aliases" : [ "CVE-2024-2689" ],
  "summary" : "Temporal Server Denial of Service",
  "details" : "Denial of Service in Temporal Server prior to version 1.20.5, 1.21.6, and 1.22.7 allows an authenticated user who has permissions to interact with workflows and has crafted an invalid UTF-8 string for submission to potentially cause a crashloop. If left unchecked, the task containing the invalid UTF-8 will become stuck in the queue, causing an increase in queue lag. Eventually, all processes handling these queues will become stuck and the system will run out of resources. The workflow ID of the failing task will be visible in the logs, and can be used to remove that workflow as a mitigation. Version 1.23 is not impacted. In this context, a user is an operator of Temporal Server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/temporalio/temporal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.22.0-rc1"
      }, {
        "fixed" : "1.22.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/temporalio/temporal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.21.0"
      }, {
        "fixed" : "1.21.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/temporalio/temporal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.20.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-2689"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/temporalio/temporal/commit/2099dfd945accbf794404c3b8d990d109de19f06"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/temporalio/temporal/commit/679e3dc2ca8bd39e02c760f686cc8807f817bbfd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/temporalio/temporal/commit/f1fab97129f964dcca17d1f7c344f38666d1ee5f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/temporalio/temporal"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/temporalio/temporal/releases"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-04T14:21:49Z",
    "nvd_published_at" : "2024-04-03T22:15:07Z"
  }
}