CVE-2024-52338
Apache Arrow R package: Arbitrary code execution when loading a malicious data file
Also known as PYSEC-2024-161
Mitigation
- Upgrade pyarrow to 17.0.0 or later.
Who should check
- Projects that depend on PyPI package pyarrow (>= 4.0.0, < 17.0.0)
- Anyone running Apache Software Foundation Apache Arrow R package >= 4.0.0, <= 16.1.0
Vulnerability facts
- Affected
- pyarrow >= 4.0.0, < 17.0.0
- Fixed in
- 17.0.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 2.79% chance of exploitation in 30 days (percentile 87, 2026-11-26)
- CWE
- CWE-502
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI pyarrow | >= 4.0.0, < 17.0.0 | 17.0.0 | osv |
| Apache Software Foundation Apache Arrow R package | >= 4.0.0, <= 16.1.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-52338. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-52338.md Affected: pyarrow >= 4.0.0, < 17.0.0 Fixed in: 17.0.0 Steps: 1. Search this machine and project for pyarrow (PyPI), Apache Software Foundation Apache Arrow R package: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2024-52338 being exploited?
There is no confirmed exploitation: CVE-2024-52338 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.79% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-52338?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-52338?
pyarrow >= 4.0.0, < 17.0.0.
Is there a fix for CVE-2024-52338?
Yes. Fixed in 17.0.0. Upgrade pyarrow to 17.0.0 or later.
How do I check if I'm affected by CVE-2024-52338?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.