Skip to content

fix(security): bump filelock to 4.3.2 - #39737

Merged
Khairajani merged 1 commit into
mainfrom
security/filelock-4.3.0
Dec 4, 2026
Merged

Khairajani merged 1 commit into
mainfrom
security/filelock-4.3.0

Conversation

@karanh37

@karanh37 karanh37 commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Surfaced by the Collate security scan on 2026-12-04; the OpenMetadata scanner did not flag this independently. Verified present in ingestion/uv.lock and ingestion/airflow-constraints-3.3.2.txt at 4.2.10, fix 4.3.0.

Advisory

CVE-2026-144349 / GHSA-jcf5-mpj4-xfg8 (Medium): on POSIX, filelock's ReadWriteLock can remove empty directories from an unrelated directory owned by the locking account. Affects 4.2.1 to before 4.3.0 (OSV).

Raw scanner finding (Collate handoff)

filelock current 4.2.10, fix 4.3.0 (CVE-2026-144349 / GHSA-jcf5-mpj4-xfg8, Medium, Improper Check for Unusual Conditions)

Change

  • ingestion/setup.py: Python 3.11+ floor filelock>=4.2.1 becomes >=4.3.0. The Python 3.10 fork stays on 3.32.7, because 4.x requires Python 3.11 or later. That matches the existing pattern.
  • ingestion/airflow-constraints-3.3.2.txt: filelock==4.2.10 becomes 4.3.2. This is an in-tree security override (ADR:2026-10-23-ingestion-images-pin-python-security-packages-in-tree).
  • ingestion/uv.lock: regenerated with the pinned uv 0.13.4 lock --upgrade-package filelock. The diff is 16 lines and touches filelock only.

Verified

  • OSV range >=4.2.1,<4.3.0 covers 4.2.10. PyPI has 4.3.0 through 4.3.2.
  • Every dependent's declared range admits 4.3.2:
    • virtualenv 21.14.12: <5,>=3.24.2
    • snowflake-connector-python 4.8.1: <5,>=3.12
    • python-discovery 1.6.1: >=3.15.4
  • uv resolved the full lock without conflicts.
  • Ingestion code does not import filelock; it is transitive only. airflow-apis does (its tests use FileLock, and api/utils.py guards against filelock's fork hook), but its lock already resolves 4.3.1 on Python 3.11+. CI runs on Python 3.10 (filelock 3.32.7), so 4.3.x is not exercised by CI.
  • import filelock; FileLock; ReadWriteLock works on 4.3.2.
  • ruff format/ruff check are clean on setup.py.

Not tested

  • I did not run the ingestion unit tests.
  • I did not build the ingestion Docker images or install them against the constraints file.
  • I did not exercise any Airflow, virtualenv or snowflake connector runtime path.

🤖 Generated with Claude Code

CVE-2026-144349 / GHSA-jcf5-mpj4-xfg8: on POSIX, filelock's ReadWriteLock
can remove empty directories from an unrelated directory owned by the locking
account (affected 4.2.1 to before 4.3.0). Raise the Python 3.11+ floor to
4.3.0 and move the in-tree Airflow constraint pin and uv.lock to 4.3.2.
@gitar-bot

gitar-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

The ingestion lockfile and constraints now use filelock 4.3.2, so changed locking behavior could affect Python 3.11+ dependency workflows.

Bumps filelock to 4.3.2 across the ingestion stack to fix CVE-2026-144349 (GHSA-jcf5-mpj4-xfg8), which allowed removal of empty directories in unrelated locations on POSIX. Updates the setup.py Python 3.11+ floor to >=4.3.0, pins ingestion/airflow-constraints-3.3.2.txt to 4.3.2, and regenerates ingestion/uv.lock with only the filelock change. 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

@karanh37 karanh37 added the To release Will cherry-pick this PR into the release branch label Dec 4, 2026
@karanh37
karanh37 marked this pull request as ready for review December 4, 2026 07:14
@karanh37
karanh37 requested a review from a team as a code owner December 4, 2026 07:14
@karanh37
karanh37 requested review from ulixius9 and a balanced review from Copilot and removed request for a team December 4, 2026 07:14
@github-actions

github-actions Bot commented Dec 4, 2026

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the dependency updates, though image builds and runtime tests remain unverified.

No open issues 🎉

What changed in this PR

Updates ingestion dependencies to address the reported filelock directory-deletion vulnerability while preserving the Python 3.10 fallback.

Changes:

  • Raises the Python 3.11+ minimum to filelock>=4.3.0.
  • Updates Airflow constraints and uv lock entries to 4.3.2.

Placement: Covers pip-installed ingestion, Airflow constraints, and locked tooling. Downstream Collate images were not verified.
Trade-off: none
Recommendation: Approve the supplied dependency changes; image builds and runtime tests remain unverified.

File Description
ingestion/​uv.lock Updates filelock resolutions, artifacts, and requirement metadata.
ingestion/​setup.py Raises the security floor for Python 3.11+.
ingestion/​airflow-constraints-3.3.2.txt Pins filelock to 4.3.2 for constrained installs.

Review effort: Balanced

@Khairajani
Khairajani merged commit 34d087b into main Dec 4, 2026
31 of 33 checks passed
@Khairajani
Khairajani deleted the security/filelock-4.3.0 branch December 4, 2026 08:36
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.1 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown

🤖 Backport to 2.1 opened as #39771 (clean cherry-pick). It merges itself once the checks pass.

@gh-bot-collate

gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown

🤖 Backport to 2.0 opened as #39772. Claude resolved a cherry-pick conflict to build it. It merges itself once the checks pass, so read the diff now if this change is a sensitive one.

Khairajani added a commit that referenced this pull request Dec 4, 2026
…on (#39825)

ingestion/setup.py moved the Python 3.11+ filelock floor to 4.3.0 for
GHSA-jcf5-mpj4-xfg8 (#39737). Match it in openmetadata-airflow-apis and
relock, which also picks up ingestion's new specifier. The resolved
version stays 4.3.1.
karanh37 added a commit that referenced this pull request Dec 4, 2026
CVE-2026-144349 / GHSA-jcf5-mpj4-xfg8: on POSIX, filelock's ReadWriteLock
can remove empty directories from an unrelated directory owned by the locking
account (affected 4.2.1 to before 4.3.0). Raise the Python 3.11+ floor to
4.3.0 and move the in-tree Airflow constraint pin and uv.lock to 4.3.2.

(cherry picked from commit 34d087b)

Co-authored-by: Karan Hotchandani <[email protected]>
karanh37 added a commit that referenced this pull request Dec 4, 2026
CVE-2026-144349 / GHSA-jcf5-mpj4-xfg8: on POSIX, filelock's ReadWriteLock
can remove empty directories from an unrelated directory owned by the locking
account (affected 4.2.1 to before 4.3.0). Raise the Python 3.11+ floor to
4.3.0 and move the in-tree Airflow constraint pin and uv.lock to 4.3.2.

(cherry picked from commit 34d087b)

Co-authored-by: Karan Hotchandani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants