Skip to content
Path traversal Disclosed report Intermediate CVE-2023-22887

Apache Airflow path traversal by authenticated user

Apache Airflow before 2.6.3 lets an authenticated user manipulate the run_id parameter to reach files outside the intended directory. This unauthorised file access could be used to cause a denial of service by touching large or resource-heavy files.

kietna20 Follow

Originally disclosed on HackerOne

Bounty$540 Low 3.1 View original
  • Disclosed after 2 months

Summary by the program

CVE-2023-22887: Apache Airflow path traversal by authenticated user Severity: low

Affected versions:

  • Apache Airflow before 2.6.3

Description: Apache Airflow, versions before 2.6.3, is affected by a vulnerability that allows an attacker to perform unauthorized file access outside the intended directory structure by manipulating the run_id parameter. This vulnerability is considered low since it requires an authenticated user to exploit it. It is recommended to upgrade to a version that is not affected

Credit: Zhipeng Zhang (@ Timon8) (finder) KietNA from National Cyber Security (NCS) (finder)

Full security advisory: https://lists.apache.org/thread/rxddqs76r6rkxsg1n24d029zys67qwwo

The report

Apache Airflow, versions before 2.6.3, is affected by a vulnerability that allows an attacker to perform unauthorized file access outside the intended directory structure by manipulating the run_id parameter.

Impact

Denial of Service (DoS): By traversing to system directories and attempting to access large or resource-intensive files, an attacker can cause a denial of service condition. This can lead to system crashes, resource exhaustion, or degraded performance.

The original report as published on HackerOne, by kietna20. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the run_id value is joined into a filesystem path without checking that the resulting path stays inside the intended directory.

Impact

An authenticated user could read files outside the intended directory and, by targeting large or resource-intensive files, could cause a denial of service; the advisory rates this as low severity because a login is required.

What the attacker needed

An authenticated Airflow account

The fix

It should be fixed by upgrading to Apache Airflow 2.6.3 or later, which the advisory recommends.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Airflow is a tool for scheduling data jobs. A parameter called run_id is used to build a file path, and the program does not check that the finished path stays inside the folder it should. A logged-in user can put special characters in run_id so the path climbs out of that folder and reads other files on the server.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.