CVE-2022-38170
Overly permissive umask for daemons
Also known as BIT-airflow-2022-38170, GHSA-q8h9-pqcx-59hw, PYSEC-2022-261
Mitigation
- Upgrade apache-airflow to 2.3.4 or later.
- Vendor workaround: Run without the `--daemon` flag via a process supervisor instead (systemd, runit, etc.).
Who should check
- Projects that depend on PyPI package apache-airflow (< 2.3.4)
- Anyone running Apache Software Foundation Apache Airflow <= 2.3.3
Vulnerability facts
- Affected
- apache-airflow < 2.3.4
- Fixed in
- 2.3.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.60% chance of exploitation in 30 days (percentile 43, 2026-11-26)
- CWE
- CWE-732
- Modified
Description
In Apache Airflow prior to 2.3.4, an insecure umask was configured for numerous Airflow components when running with the `--daemon` flag which could result in a race condition giving world-writable files in the Airflow home directory and allowing local users to expose arbitrary file contents via the webserver.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI apache-airflow | < 2.3.4 | 2.3.4 | osv |
| Apache Software Foundation Apache Airflow | <= 2.3.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-38170. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-38170.md Affected: apache-airflow < 2.3.4 Fixed in: 2.3.4 Steps: 1. Search this machine and project for apache-airflow (PyPI), Apache Software Foundation Apache Airflow: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2022-38170 being exploited?
There is no confirmed exploitation: CVE-2022-38170 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-38170?
Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2022-38170?
apache-airflow < 2.3.4.
Is there a fix for CVE-2022-38170?
Yes. Fixed in 2.3.4. Upgrade apache-airflow to 2.3.4 or later. Vendor workaround: Run without the `--daemon` flag via a process supervisor instead (systemd, runit, etc.).
How do I check if I'm affected by CVE-2022-38170?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.