Skip to content

CVE-2024-52338 Apache Arrow R package: Arbitrary code execution when loading a malicious data file

CriticalCVSS 9.8 EPSS 2.3%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

Description

Deserialization of untrusted data in IPC and Parquet readers in the Apache Arrow R package versions 4.0.0 through 16.1.0 allows arbitrary code execution. An application is vulnerable if it
reads Arrow IPC, Feather or Parquet data from untrusted sources (for
example, user-supplied input files). This vulnerability only affects the arrow R package, not other Apache Arrow
implementations or bindings unless those bindings are specifically used via the R package (for example, an R application that embeds a Python interpreter and uses PyArrow to read files from untrusted sources is still vulnerable if the arrow R package is an affected version). It is recommended that users of the arrow R package upgrade to 17.0.0 or later. Similarly, it
is recommended that downstream libraries upgrade their dependency
requirements to arrow 17.0.0 or later. If using an affected
version of the package, untrusted data can read into a Table and its internal to_data_frame() method can be used as a workaround (e.g., read_parquet(..., as_data_frame = FALSE)$to_data_frame()).

This issue affects the Apache Arrow R package: from 4.0.0 through 16.1.0.

Users are recommended to upgrade to version 17.0.0, which fixes the issue.

Upgrade path

5 packages: 5 fixed.

PackageAffectedFixed inStatus
apache arrow >= 4.0.0, < 17.0.0 17.0.0 Fixed
Apache Arrow R package >= 4.0.0, <= 16.1.0 after 16.1.0 Fixed
azure linux ceph(Azure Linux 3.0) < 18.2.2-2 18.2.2-2 Fixed
azure linux libarrow(Azure Linux 3.0) < 15.0.0-7 15.0.0-7 Fixed
pypi pyarrow(PyPI) = 4.0.0; = 4.0.1; = 5.0.0; = 6.0.0 +19 more 17.0.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi pyarrow(PyPI) >= 4.0.0, < 17.0.0 17.0.0
pypi pyarrow(PyPI) = 10.0.0 No fix listed
pypi pyarrow(PyPI) = 10.0.1 No fix listed
pypi pyarrow(PyPI) = 11.0.0 No fix listed
pypi pyarrow(PyPI) = 12.0.0 No fix listed
pypi pyarrow(PyPI) = 12.0.1 No fix listed
pypi pyarrow(PyPI) = 13.0.0 No fix listed
pypi pyarrow(PyPI) = 14.0.0 No fix listed
pypi pyarrow(PyPI) = 14.0.1 No fix listed
pypi pyarrow(PyPI) = 14.0.2 No fix listed
pypi pyarrow(PyPI) = 15.0.0 No fix listed
pypi pyarrow(PyPI) = 15.0.1 No fix listed
pypi pyarrow(PyPI) = 15.0.2 No fix listed
pypi pyarrow(PyPI) = 16.0.0 No fix listed
pypi pyarrow(PyPI) = 16.1.0 No fix listed
pypi pyarrow(PyPI) = 4.0.0 No fix listed
pypi pyarrow(PyPI) = 4.0.1 No fix listed
pypi pyarrow(PyPI) = 5.0.0 No fix listed
pypi pyarrow(PyPI) = 6.0.0 No fix listed
pypi pyarrow(PyPI) = 6.0.1 No fix listed
pypi pyarrow(PyPI) = 7.0.0 No fix listed
pypi pyarrow(PyPI) = 8.0.0 No fix listed
pypi pyarrow(PyPI) = 9.0.0 No fix listed
azure linux libarrow(Azure Linux:3.0) < 15.0.0-7 15.0.0-7
azure linux ceph(Azure Linux:3.0) < 18.2.2-2 18.2.2-2
Show 2 more
ProductAffected versionsFixed in
Apache Arrow R package >= 4.0.0, <= 16.1.0 No fix listed
apache arrow >= 4.0.0, < 17.0.0 17.0.0

References