CVE-2021-37914 Workflow re-write vulnerability using input parameter

Medium 6.5 Published Updated

Attackers can disrupt workflows via expression template injection if EXPRESSION_TEMPLATES is enabled and untrusted users control input parameters.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-37914?

CVE-2021-37914 is a medium-severity code injection vulnerability in n/a, published on 2 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Argo Workflows through 3.1.3, if EXPRESSION_TEMPLATES is enabled and untrusted users are allowed to specify input parameters when running workflows, an attacker may be able to disrupt a workflow because expression template output is evaluated.

Weakness: CWE-20

Which versions are affected by CVE-2021-37914?

6 open source packages ship an affected version, including github.com/argoproj/argo-workflows/v3, argo-workflows and github.com/argoproj/argo-workflows. It affects 1 product.

PackageAffectedFixed in
github.com/argoproj/argo-workflows/v3 GoFrom 3.1.03.1.6
github.com/argoproj/argo-workflows/v3 GoFrom 3.1.03.1.6
github.com/argoproj/argo-workflows/v3 GoFrom 3.1.03.1.6
argo-workflows BitnamiAll versions3.1.4
github.com/argoproj/argo-workflows GoAll versionsNone
github.com/argoproj/argo-workflows/v2 GoAll versionsNone

Products include Argoproj Argo Workflows.

How do I fix CVE-2021-37914?

Upgrade github.com/argoproj/argo-workflows/v3 to 3.1.6 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-37914 being exploited?

There is no known exploitation of CVE-2021-37914 in the wild and no public exploit code.

Sources

Also known as BIT-argo-workflows-2021-37914, GHSA-h563-xh25-x54q, GO-2022-0928.

Is CVE-2021-37914 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free