CVE-2021-45230
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn Apache Airflow prior to 2.2.0. This CVE applies to a specific case where a User who has "can_create" permissions on DAG Runs can create Dag Runs for dags that they don't have "edit" permissions for.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceIn Apache Airflow versions prior to 2.2.0, an authorization bypass exists where users granted 'can_create' permission on DAG Runs can create DAG Runs for DAGs on which they do not have 'edit' permissions. This allows unauthorized execution of DAGs the user should not have access to modify or run.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 1.10.0, <= 1.10.15>= 2.0.0, < 2.2.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed Airflow versionRun 'airflow version' or check the version in your deployment metadata. Compare against affected ranges: 1.10.0-1.10.15 or 2.0.0-2.1.xAffected if Installed version falls within >=1.10.0 to <=1.10.15 or >=2.0.0 to <2.2.0
-
Confirm RBAC mode is enabledCheck the Airflow webserver configuration (usually airflow.cfg) for 'rbac = True' under the [webserver] section, or inspect whether the RBAC UI is in useAffected if RBAC mode is enabled (this is required for the permission model this CVE exploits)
-
Identify users with DAG Runs can_create permissionQuery the Airflow metadata database for users holding the 'can_create' permission on 'DAG Runs' resource, or review role permissions in the Airflow UI under Security > List RolesAffected if Users exist who have 'can_create' permission on DAG Runs
-
Verify users lack DAG-level edit permissionsFor each user with 'can_create' on DAG Runs, check whether they also have 'can_edit' permission on specific DAGs they should not controlAffected if Any user has 'can_create' on DAG Runs but lacks 'can_edit' on certain DAGs they could trigger
You are affected if running Airflow 1.10.0-1.10.15 or 2.0.0-2.1.x with RBAC enabled and users possess DAG Runs create permission without corresponding DAG edit permissions.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2.2.0
Upgrade Apache Airflow to version 2.2.0 or later, which contains the authorization fix. Review existing user role assignments to ensure the principle of least privilege is applied.
Apache Airflow 2.2.0 or later (preferably latest 2.x stable release)
- Review the Airflow upgrade checklist at https://airflow.apache.org/docs/apache-airflow/stable/upgrading-to-2.html
- Create a backup of your current Airflow metadata database
- Create a backup of your Airflow configuration (airflow.cfg) and any custom plugins
- Test the upgrade in a staging environment first
- Stop the Airflow webserver, scheduler, and worker services
- Upgrade Airflow using pip: pip install apache-airflow==2.2.0 or pip install apache-airflow>=2.2.0 for the latest 2.x release
- Run database migrations: airflow db upgrade
- Verify DAG parsing works: airflow dags list
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,600.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-45230 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-45230 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data