> For the complete documentation index, see [llms.txt](https://datalab-docs.datacamp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://datalab-docs.datacamp.com/resources/address-r-vulnerability.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
