# CVE-2026-49818: Apache Airflow Samba provider: Path traversal in GCSToSambaOperator via GCS object names

> An attacker with write access to a source GCS bucket can write files to arbitrary locations on the Samba target via path traversal in the GCSToSambaOperator.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 9 Jun 2026
- **Updated:** 10 Jun 2026
- **Also known as:** GHSA-f6vj-48fm-hmvx, PYSEC-2026-208

## What is CVE-2026-49818?

CVE-2026-49818 is a medium-severity path traversal vulnerability in Apache Airflow Samba provider, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The Apache Airflow Samba provider's `GCSToSambaOperator` joined GCS object names to the SMB destination path without a containment check, so an object named with `../` segments resolved a write path outside the configured `destination_path`. An attacker able to write objects into the source GCS bucket — typically an external data producer distinct from the trusted DAG author — could write files to arbitrary locations on the Samba target when the operator ran. Upgrade apache-airflow-providers-samba to 4.12.6 or later, which validates the resolved destination stays within `destination_path`.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-49818?

3 open source packages ship an affected version, including apache-airflow-providers-samba. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `apache-airflow-providers-samba` | PyPI | All versions | 4.12.6 |
| `apache-airflow-providers-samba` | PyPI | All versions | 4.12.6 |
| `apache-airflow-providers-samba` | PyPI | All versions | 4.12.6 |

Products: Apache Apache-Airflow-Providers-Samba.

## How do I fix CVE-2026-49818?

Upgrade apache-airflow-providers-samba to 4.12.6 or later.

## Is CVE-2026-49818 being exploited?

There is no known exploitation of CVE-2026-49818 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-49818 and fix it if it is affected.

What it is: CVE-2026-49818 is a medium-severity path traversal vulnerability in Apache Airflow Samba provider, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-49818 in the wild and no public exploit code.

Affected packages and fixed versions:
- apache-airflow-providers-samba (PyPI): affected all versions; fixed in 4.12.6
- apache-airflow-providers-samba (PyPI): affected all versions; fixed in 4.12.6
- apache-airflow-providers-samba (PyPI): affected all versions; fixed in 4.12.6

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-49818/ (Markdown: https://insights.sbomify.com/CVE-2026-49818/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-49818
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-49818
- OSV: https://osv.dev/vulnerability/CVE-2026-49818

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-49818/
Summaries are generated and may contain mistakes; the official description above is the record.
