CVE-2021-37914: Github.com/argoproj/argo workflows/v3 Workflow Re-write Vulnerability Using Input Vulnerability
MODERATECVE-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
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.
Upgrade github.com/argoproj/argo-workflows/v3 to 3.1.6
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
CVE-2021-37914 Affected Github.com/argoproj/argo workflows/v3 Versions
1 component(s)| 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?
Which Github.com/argoproj/argo workflows/v3 versions are affected?
What version fixes CVE-2021-37914?
Is github.com/argoproj/argo-workflows/v3 affected?
What CWE is associated with CVE-2021-37914?
How can I check Go dependencies for CVE-2021-37914?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}