# Advisory: Ruby2Shell and Associated Vulnerabilities — Update and redeploy your Ruby services to protect against remote code execution.

## Summary

On *November 18, 2026*, Ruby released patches for seven vulnerabilities in its regular expression engine and string case conversion. Some of these vulnerabilities can allow remote code execution. The vulnerabilities affect Ruby 3.3.13 and earlier, Ruby 3.4.0 through 3.4.12, and Ruby 4.0.0 through 4.0.9. See the [Ruby security advisory](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/) for details.

One of the seven vulnerabilities is a critical flaw in string case conversion known as Ruby2Shell ([GHSA-34m4-m9fh-gqp5](https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5)).

*Update and redeploy your Ruby services as soon as possible.* Explicitly select a patched Ruby version before redeploying.

If you use Ruby to build static sites on Render, also update their Ruby version and redeploy those sites.

## Steps to secure your services

### 1. Update each service's Ruby version

Update to the patched version for your Ruby branch, or a later release in that branch:

| Ruby branch | Patched version |
| --- | --- |
| Ruby 4.0 | `4.0.10` |
| Ruby 3.4 | `3.4.13` |
| Ruby 3.3 | `3.3.14` |

Follow the instructions for your runtime. For static sites that build with Ruby, use the *Native runtime* tab.

**Tab: Native runtime**

Set the Ruby version for your service or static site using any of the methods described in [Setting Your Ruby Version](/docs/ruby-version.md).

If you already set your Ruby version using any supported method, make sure to use that same method or one with higher precedence when applying this update.

**Tab: Docker**

- *If you build from a Dockerfile,* update it to use a patched Ruby version. If your base image includes Ruby, update the `FROM` instruction to use an image containing a patched release.
- *If you pull a prebuilt image,* publish or obtain a patched image and update your service's configured tag or digest as needed.

> *Ruby 3.2 and earlier have reached end of life.*
>
> If you use one of these versions, upgrade to a supported Ruby branch.

### 2. Redeploy your Ruby services

Deploy your updated code or image to every affected Render service and static site:

- For Git-backed services and static sites, commit and push your changes. From the service's page in the [Render Dashboard](https://dashboard.render.com), select *Manual Deploy > Deploy latest commit*.
- For a service that [pulls a prebuilt image](/docs/deploying-an-image.md), select *Manual Deploy > Deploy latest reference*.

Wait for each deploy to complete successfully.

### 3. Confirm the deployed Ruby version

For a native Ruby service or a static site that builds with Ruby, check the *build logs* to confirm that Render used a patched Ruby version.

For any deployed service with [shell access](/docs/ssh.md), including Docker-based services, run the following to confirm that the service is running a patched Ruby version:

```shell
ruby -v
```

## History of updates to this advisory

| Date | Change |
| --- | --- |
| `2026-11-19` | Posted initial advisory. |


---

##### Appendix: Glossary definitions

###### static site

Deploy this *service type* to host a static website (HTML/CSS/JS) over a global CDN at a public URL.

Related article: https://render.com/docs/static-sites.md