R: Directory Traversal — GLSA 202401-07

A vulnerability was found in R which could allow for remote code execution.

Affected packages

dev-lang/R on all architectures
Affected versions < 4.0.4
Unaffected versions >= 4.0.4

Background

R is a language and environment for statistical computing and graphics.

Description

The native R package installation mechanisms do not sufficiently validate installed source packages for path traversal.

Impact

Installation of a malicious R package could result in an arbitrary file overwrite which could result in arbitrary code execution, as might be seen with the overwrite of an authorized_keys file.

Workaround

There is no known workaround at this time.

Resolution

All R users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-lang/R-4.0.4"
 

References

Release date
January 06, 2024

Latest revision
January 06, 2024: 1

Severity
normal

Exploitable
remote

Bugzilla entries