CVE-2026-133707
The targets R package before 1.12.1 contains a code execution vulnerability that allows attackers to run arbitrary R code by planting format functions in the d…
Impact
The targets R package before 1.12.1 contains a code execution vulnerability that allows attackers to run arbitrary R code by planting format functions in the data store metadata file. Attackers can supply a crafted _targets data store whose custom format or CAS repository functions are passed to eval(parse()), executing code when victims call tar_read(), tar_load() or tar_workspace().
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products · Ropensci
| Product | Affected versions |
|---|---|
| Targets | before 1.12.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/ropensci/targets/issues/1602
- https://github.com/ropensci/targets/commit/a9681eb237500c7e9a0814cfde31bd05c53d934f
- https://github.com/ropensci/targets/blob/1.12.0/R/class_store_format_custom.R
- https://github.com/ropensci/targets/blob/1.12.0/R/class_store_repository_cas.R
- https://github.com/ropensci/targets/releases/tag/1.12.1
- https://www.vulncheck.com/advisories/targets-r-package-before-1.12.1-code-execution-via-custom-storage-metadata
- https://github.com/advisories/GHSA-gxqv-c3wm-v5fp
- https://nvd.nist.gov/vuln/detail/CVE-2026-133707