Skip to content

[2.0] fix(ingestion): backport CVE dependency floors and the PowerBI .pbit Zip Slip fix (#37748, #37858, #37859) - #37861

Merged
Khairajani merged 4 commits into
2.0from
fix/2.0-ingestion-python-cve-floors
Nov 16, 2026
Merged

Khairajani merged 4 commits into
2.0from
fix/2.0-ingestion-python-cve-floors

Conversation

@Khairajani

@Khairajani Khairajani commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #

Backports #37748, #37858 and #37859 to 2.0 in one PR. Each is cherry-picked as its own commit.

Conflicts resolved:

  • uv.lock: dropped, because 2.0 has none.
  • setup.py: 2.0 never had main's tornado>=6.6 line, so the >=6.6.1 line is added as-is.
  • file_client.py: kept 2.0's Optional[List[...]] signature on _get_datamodel_schema_list.

Verified on current 2.0:

  • uv pip compile .[all] at Python 3.12 resolves dnspython 2.9.2, filelock 4.2.10, oauthlib 4.0.1, otel-api 1.45.2.
  • Python 3.10 still resolves; it keeps the older dnspython and filelock.
  • pip --dry-run of openmetadata-airflow-apis + apache-airflow 3.3.2 with the updated constraints resolves.
  • Nothing in ingestion/src imports these packages directly.
  • PowerBI unit tests pass on 2.0 with 2.0's generated models, including the new Zip Slip tests.

Type of change:

  • Bug fix

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable new issue was established.

Summary

Updates ingestion dependency floors and Airflow constraints for security fixes. The latest changes also tighten PowerBI archive extraction.

  • Ingestion installs use higher security-related package floors.
  • Power BI skips archive entries that point outside their extraction folder.
  • Power BI keeps reading schemas when one .pbit archive is unreadable.

Reviews (3) · Last reviewed commit: "fix(ingestion): validate PowerBI .pbit a..." · Reviewed by Greptile

ulixius9 and others added 2 commits November 16, 2026 14:12
… alerts (#37748)

oauthlib >= 4.0.1 fixes GHSA-3jp2-3mrg-2vxc (device-code grant issues a
token for any device_code). filelock >= 4.2.1 fixes GHSA-v4x8-3wr5-3wq8
(ReadWriteLock follows planted symlinks) and dnspython >= 2.9.0 fixes
GHSA-45c3-73f7-pv4m (name decompression CPU DoS); both fixes need Python
3.11, so the floors carry a python_version marker and the 3.10 fork keeps
the vulnerable releases.

The images pip-install openmetadata-ingestion from PyPI rather than from
uv.lock, so the floors go in setup.py where they reach both. The in-tree
Airflow constraints pin oauthlib 3.3.1 and filelock 3.32.6; bump them, and
snowflake-connector-python to 4.8.1 because 4.7.x caps filelock < 4.

(cherry picked from commit 8a95e0c)
… CVEs (#37858)

dnspython >= 2.9.2 fixes CVE-2026-128089, which the 2.9.0 floor from
opentelemetry-exporter-otlp 1.45.2 brings opentelemetry-api 1.45.2 for
CVE-2026-126360. The dnspython and tornado fixes need Python 3.11, so the
existing python_version markers stay and the 3.10 fork keeps the old releases.

The in-tree Airflow constraints pin dnspython 2.9.0, tornado 6.5.9 and the
OpenTelemetry family at 1.45.1 / 0.66b1; bump them to match, and regenerate
uv.lock for just these packages.

(cherry picked from commit b7a53e0)
@Khairajani
Khairajani requested a review from a team as a code owner November 16, 2026 08:43
@Khairajani
Khairajani requested review from harshsoni2024 and removed request for a team November 16, 2026 08:43
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@Khairajani Khairajani added the safe to test Add this label to run secure Github workflows on PRs label Nov 16, 2026
…ing (#37859)

* fix(ingestion): validate PowerBI .pbit archive members before extracting

get_datamodel_schema_files_from_pbit() called extractall() on .pbit files
pulled from a shared bucket or folder without checking member names. CPython's
extractall rewrites ".." and absolute names, so nothing lands outside the
target today, but the crafted entry is silently relocated rather than
rejected, and the download step in the same file already validates paths
explicitly.

Extract member by member and skip, with a warning, any entry whose resolved
path leaves the extract directory. Also handle each .pbit on its own, so one
corrupt file no longer discards the schemas of all the others.

* test(ingestion): assert the .pbit escape paths a traversal would actually reach

* fix(ingestion): skip a .pbit that fails mid-extraction instead of dropping all schemas

Opening a ZIP reads only its central directory, so damaged compressed data
fails later, during extraction, with zlib.error, EOFError, RuntimeError or
NotImplementedError. The per-file handler caught only BadZipFile and OSError,
so those errors reached the outer handler and returned None for every archive.
Catch any extraction failure per file, and add a test with damaged deflate data
next to a good archive.

* style(ingestion): use lazy %-style logging in the .pbit extraction warnings

* test(ingestion): assert the good .pbit's parsed schema instead of mocking the schema reader

(cherry picked from commit def1e9e)
@Khairajani Khairajani changed the title [2.0] fix(ingestion): backport oauthlib, filelock, dnspython, tornado and OpenTelemetry CVE floors (#37748, #37858) [2.0] fix(ingestion): backport CVE dependency floors and the PowerBI .pbit Zip Slip fix (#37748, #37858, #37859) Nov 16, 2026
@gitar-bot

gitar-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Raising ingestion dependency floors and changing .pbit extraction behavior could affect package compatibility or cause archive contents to be skipped.

Backports CVE-driven dependency floors (oauthlib, filelock, dnspython, tornado, OpenTelemetry, and Airflow constraints) and hardens PowerBI .pbit extraction against Zip Slip, with per-file error handling so one damaged archive does not drop other schemas. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Khairajani
Khairajani merged commit 992a103 into 2.0 Nov 16, 2026
66 of 72 checks passed
@Khairajani
Khairajani deleted the fix/2.0-ingestion-python-cve-floors branch November 16, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants