# Address R vulnerability

On April 29, 2024, security researchers discovered a vulnerability that affects version 4.3 (and earlier) of the R programming language. The vulnerability allows a threat actor to arbitrarily execute code on targeted devices. The full details are [here](https://kb.cert.org/vuls/id/238194).&#x20;

This vulnerability is solved in R version 4.4, which is available on DataLab. You are strongly advised to upgrade the R version of workbooks you’re actively using from R version 4.2 to R version 4.4.&#x20;

### Steps to upgrade the R version in your workbooks

To adjust the settings of a workbook to use R version 4.4 instead of R version 4.2:

* Visit [www.datacamp.com/datalab](http://www.datacamp.com/datalab) (and sign in with your DataCamp account if needed)
* Open a workbook that you still plan to work on in the future.\
  ![](https://lh7-us.googleusercontent.com/9QPYr1iURvkEl6NRvhn2Eqr-SKByokm6UoWzWrGR4qnNlzRkRoZTQQH1OBnsSO1e915CHAAsEQ7idADb8twAQWEuOYEaNTjOXsxQo8Wm6qIrjUsbXgiQ_WUhm76vI3w121t5IoQk99A9ZlMBkKLb1Q)
* Ensure you’re in the ‘Code’ view (you can find the toggle in the top-right corner)\
  ![](https://lh7-us.googleusercontent.com/7OipO-uZknRh-Kbb9GHwW-KzFZFHBOcNFRc4WK1MNC3Pq94dAtDKCo3AeXio1K5eNt9yZYDGxOyZxr5du4oE8EAcQD3_jArlJfZKGjj4O0abwxMGxT7BRLsbcbaMRI-tuhMfAbMAyXz1Pfdx_wkOmA)
* Open the ‘Environment’ tab and select R 4.4 from the Session details dropdown\
  ![](https://lh7-us.googleusercontent.com/WiSY_FgKtCb1356ienuskcDMMNvqncPqR3PTg91lDiR9HTuNPEgnzUbcu686xMM5jeth02E-y00ko6RwyFMSONusRxHPv2RD7TF3Dez_41QsnUPIqYjRNm770mdKADiu6LayzGfb98jAXYrkx0lW3Q)

Repeat the steps above for every R workbook you plan to use regularly.

### We're here to help

If you have any questions or need assistance regarding this change, please [Get help](/resources/support.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://datalab-docs.datacamp.com/resources/address-r-vulnerability.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
