Skip to content
RCE Write-up Advanced

Statement on CVE-2024-27322

A deserialisation bug in R allowed an attacker to create an unbound promise by crafting a malicious serialised file, which could lead to code execution when the file is loaded. The R Core Team states the bug has been fixed in R 4.4.0.

blog.r-project.org

Published on blog.r-project.org

R is a full-featured language that includes functions to interface with both the host operating system and the Internet. As with any such language, there are many ways to write code with malicious intent.

The author, on blog.r-project.org

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the deserialisation process did not properly validate that promises (language objects for lazy evaluation) are bound to an environment, allowing a crafted file to create an unbound promise.

Impact

An attacker could potentially execute arbitrary code by tricking a user into loading a malicious serialised file, though the text does not specify the exact impact beyond creating an unbound promise.

What the attacker needed

Victim loads a malicious serialised file

The fix

The bug was fixed in R 4.4.0, which removed the attack vector.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

R is a programming language used for statistics. When R saves and loads data, it uses a process called serialisation. A bug in this process meant that a specially crafted file could make R behave unexpectedly, potentially running harmful code. The bug has been fixed in the latest version.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.