CVE-2021-37914: Github.com/argoproj/argo workflows/v3 Workflow Re-write Vulnerability Using Input Vulnerability

MODERATE
Advisory Identifier: GHSA-h563-xh25-x54q
CWE-20
Published
Advisory Summary

CVE-2021-37914 is a MODERATE workflow re-write vulnerability using input vulnerability (CWE-20: Improper Input Validation) affecting Github.com/argoproj/argo workflows/v3 libraries in the Go ecosystem. The issue involves workflow re-write vulnerability using input parameter. Remediation is available by upgrading affected packages to version 3.1.6.

CVE-2021-37914 at a Glance

CVE Identifier CVE-2021-37914
GHSA Identifier GHSA-h563-xh25-x54q
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/argoproj/argo workflows/v3
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2021-37914

To remediate this vulnerability, upgrade all affected Github.com/argoproj/argo workflows/v3 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/argoproj/argo-workflows/v3 fixed: 3.1.6
Upgrade github.com/argoproj/argo-workflows/v3 to 3.1.6
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/argoproj/argo-workflows/v3

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-37914, inspect your project dependencies for Github.com/argoproj/argo workflows/v3:

inspect dependencies for github.com/argoproj/argo-workflows/v3

Analyze the terminal output to locate any version of Github.com/argoproj/argo workflows/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.6), 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/argoproj/argo workflows/v3, 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

### Impact * Allow end-users to set input parameters, but otherwise expect workflows to be secure. ### Patches Not yet. ### Workarounds * Set `EXPRESSION_TEMPLATES=false` for the workflow controller ### References * https://github.com/argoproj/argo-workflows/issues/6441 ### For more information If you have any questions or comments about this advisory: * Open an issue in [example link to repo](http://example.com) * Email us at [example email address](mailto:example@example.com)

CVE-2021-37914 Affected Github.com/argoproj/argo workflows/v3 Versions

1 component(s)
Fixed Versions:
3.1.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/argoproj/argo-workflows/v3
Go
≥ 3.1.0
< 3.1.6
3.1.6

References

Frequently Asked Questions

What is CVE-2021-37914?
CVE-2021-37914 is a security vulnerability in Github.com/argoproj/argo workflows/v3 involving Workflow re-write vulnerability using input parameter under CWE-20: Improper Input Validation.
Which Github.com/argoproj/argo workflows/v3 versions are affected?
Affected versions include releases prior to 3.1.6 across affected packages: github.com/argoproj/argo-workflows/v3.
What version fixes CVE-2021-37914?
Upgrading to 3.1.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/argoproj/argo-workflows/v3 affected?
Yes, github.com/argoproj/argo-workflows/v3 is affected in releases prior to 3.1.6. Upgrade your dependency to 3.1.6 or later.
What CWE is associated with CVE-2021-37914?
CVE-2021-37914 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-2021-37914?
Run the dependency tree command: 'inspect dependencies for github.com/argoproj/argo-workflows/v3'. 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-h563-xh25-x54q",
  "modified" : "2021-08-30T23:23:11Z",
  "published" : "2021-08-09T20:37:50Z",
  "aliases" : [ "CVE-2021-37914" ],
  "summary" : "Workflow re-write vulnerability using input parameter",
  "details" : "### Impact\n\n* Allow end-users to set input parameters, but otherwise expect workflows to be secure.\n\n### Patches\n\nNot yet.\n\n### Workarounds\n\n* Set `EXPRESSION_TEMPLATES=false` for the workflow controller\n\n\n### References\n\n* https://github.com/argoproj/argo-workflows/issues/6441\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [example link to repo](http://example.com)\n* Email us at [example email address](mailto:example@example.com)\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/argoproj/argo-workflows/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-workflows/security/advisories/GHSA-h563-xh25-x54q"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-37914"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-workflows/issues/6441"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-workflows/pull/6285"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-workflows/pull/6442"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-workflows/commit/2a2ecc916925642fd8cb1efd026588e6828f82e1"
  }, {
    "type" : "PACKAGE",
    "url" : "github.com/argoproj/argo-workflows/v3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-08-04T18:26:07Z",
    "nvd_published_at" : "2021-08-03T00:15:00Z"
  }
}