Miggo Logo

CVE-2022-27949: Apache Airflow subject to Exposure of Sensitive Information

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.38104%
Published
11/14/2022
Updated
9/11/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
apache-airflowpip< 2.3.12.3.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key issues:

  1. In TaskInstance.get_rendered_template_fields, the pre-2.3.1 code path for unmasked template rendering of pending tasks (via RenderedTaskInstanceFields initialization without proper redaction) exposed secrets.
  2. The mask_secret function's conditional logic (checking settings.MASK_SECRETS_IN_LOGS) prevented secret masking in non-running task contexts. The patch removed this conditional check and enforced redaction through direct calls to redact() in template rendering. The commit diff and CVE description explicitly show these functions were modified to address the exposure mechanism.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* vuln*r**ility in UI o* *p**** *ir*low *llows *n *tt**k*r to vi*w unm*sk** s**r*ts in r*n**r** t*mpl*t* v*lu*s *or t*sks w*i** w*r* not *x**ut** (*or *x*mpl* w**n t**y w*r* **p*n*in* on p*st *n* pr*vious inst*n**s o* t** t*sk **il**). T*is issu* ***

Reasoning

T** vuln*r**ility st*ms *rom two k*y issu*s: *. In T*skInst*n**.**t_r*n**r**_t*mpl*t*_*i*l*s, t** pr*-*.*.* *o** p*t* *or unm*sk** t*mpl*t* r*n**rin* o* p*n*in* t*sks (vi* R*n**r**T*skInst*n***i*l*s initi*liz*tion wit*out prop*r r****tion) *xpos** s*