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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.79% (percentile 87, 2026-11-29)
- **CWE:** CWE-502
- **Aliases:** PYSEC-2024-161
- **Published:** 2024-11-28T16:31:44.087Z
- **Modified:** 2026-06-17T08:07:02.880Z

## 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

## 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

- PyPI `pyarrow`: affected \>= 4.0.0, \< 17.0.0; fixed 17.0.0 (osv)
- Apache Software Foundation Apache Arrow R package: \>= 4.0.0, \<= 16.1.0 (cvelist)

## Mitigation

- Upgrade pyarrow to 17.0.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-29).

### 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.

## References

- vendor: <https://lists.apache.org/thread/0rcbvj1gdp15lvm23zm601tjpq0k25vt>
- patch: <https://github.com/apache/arrow/commit/801de2fbcf5bcbce0c019ed4b35ff3fc863b141b>
- other: <http://www.openwall.com/lists/oss-security/2024/11/28/3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-52338>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2024-161> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-52338> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-52338>
