CVE-2026-133707: targets R package before 1.12.1 Code Execution via Custom Storage Metadata
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 tarread(), tarload() or tarworkspace().
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of targets versions before 1.12.1 are exposed if they read or load a crafted _targets data store. The affected operations are tar_read(), tar_load(), and tar_workspace().
What must an attacker provide to trigger code execution?
The attacker must supply or plant a crafted _targets data store containing malicious custom format functions or CAS repository functions in its metadata. The code executes when the victim invokes one of the affected targets functions.
Is user interaction required?
Yes. The victim must call tar_read(), tar_load(), or tar_workspace() against the crafted data store for the malicious metadata to be evaluated.
What should be avoided until the package is updated?
Do not use _targets data stores from untrusted or unverified sources with tar_read(), tar_load(), or tar_workspace(). Treat data store metadata as executable-risk input because custom functions can be evaluated.