Improper Neutralization of Special Elements Used in a Template Engine Affecting apache-airflow-core package, versions [,3.2.2rc1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-APACHEAIRFLOWCORE-17933331
  • published10 Jul 2026
  • disclosed1 Jun 2026
  • creditKevin Yang

Introduced: 1 Jun 2026

CVE-2026-42252  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade apache-airflow-core to version 3.2.2rc1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine via the bash_command parameter in the BashOperator when user-supplied input from the conf field is not properly sanitized. An attacker can execute arbitrary shell commands by injecting shell metacharacters into the conf parameter when triggering a DAG run. This is only exploitable if DAG code was modeled after the pre-correction documentation example and users have the Dag.can_trigger permission.

CVSS Base Scores

version 4.0
version 3.1