PyArrow Hotfix

0.7 · active · verified Sun Apr 05

Pyarrow-hotfix is a pure Python package designed to mitigate the PyArrow security vulnerability CVE-2023-47248, which affected PyArrow versions 0.14.0 to 14.0.0. It disables the vulnerable deserialization feature, offering a temporary solution for users unable to immediately upgrade to PyArrow 14.0.1 or later. The library is released on an as-needed basis for security patches.

Warnings

Install

Imports

Quickstart

The hotfix is activated simply by importing the `pyarrow_hotfix` module. This should be done early in your application's lifecycle to ensure the vulnerability is disabled before any potentially malicious PyArrow data is processed.

import pyarrow_hotfix
import pyarrow as pa

# The hotfix is applied simply by importing the module.
# Any subsequent PyArrow operations will have the vulnerable feature disabled.
# Example (will raise a RuntimeError if vulnerable data is encountered):
# try:
#     pa.ipc.open_file('malicious_data.arrow')
# except RuntimeError as e:
#     print(f"Caught expected error: {e}")

view raw JSON →