Ruby2Shell and Nginx2Root response

AI-generated summary

david announced critical security patches for recent vulnerabilities in NGINX and Ruby. For managed discourse.org hosting, no user action is required as the backend was updated to Ruby 4.0.10 and Nginx was patched. Self-hosted users are urged to update immediately via the admin dashboard (/admin/update) or a CLI rebuild.

The initial instructions for verifying the update—checking /VERSION for 2.0.20261119—caused confusion. Jonathan5 noted that a rebuild resulted in that specific version string, but subsequent checks confirmed the correct Ruby and Nginx versions were installed. david acknowledged the ambiguity and updated the original post.

Further confusion arose when peternlewis reported that the admin dashboard showed the application as up-to-date, yet /VERSION returned an older base image (2.0.20260803) with an unpatched Ruby version. supermathie clarified that /VERSION reflects the base image (runtime environment), not the application code. NateDhaliwal and Ed_S explained that a full ./launcher rebuild app was necessary to update the base image, noting that the dashboard’s green checkmark can be misleading if the base image is outdated.

david confirmed that a fix was deployed to better detect base image versions for ESR branches. supermathie suggested improving the UI to explicitly label “Runtime Environment” versions to prevent future user confusion. The thread concluded with merefield appreciating the security team’s vigilance.

Critical vulnerabilities have been disclosed this week in NGINX and Ruby.

If you use our managed discourse.org hosting, no action is required. Ruby has been updated to 4.0.10. Our particular use of Nginx was not vulnerable, but we have applied the patches for defense-in-depth.

If you self-host Discourse, you should update as soon as possible. In a standard install, visit /admin/update and follow the instructions to perform a CLI rebuild.

Verify successful update

If you’d like to verify you have the latest version of our docker image, run these commands:

./launcher enter app
cat /VERSION

If the image version is 2.0.20261119 or higher, then you have the fixed version of Ruby (4.0.10), and a patched version of NGINX.

Vulnerability IDs are:

  • Ruby (advisory): GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-87fm-7w84-j2px, GHSA-wpqw-5qxg-m68r, GHSA-3p8q-wmhx-vm2w, GHSA-7whj-cfh7-xgm4, GHSA-pvgc-g7gj-pv6h.

  • NGINX (advisories): CVE-2026-123007, CVE-2026-123633, CVE-2026-123634, CVE-2026-121810, CVE-2026-113425, CVE-2026-118899, CVE-2026-123640, CVE-2026-125283.

26 Likes

After rebuild that command showed exactly 2.0.20261119, which initially confused me, but

  • docker images discourse/base shows discourse/base:2.0.20261119-0203 (which I guess counts as greater than 2.0.20261119)
  • ruby -v (inside the container) shows ruby 4.0.10 (2026-11-19 revision a704b7cd95) +PRISM \[x86_64-linux\]
  • nginx -v (inside the container) shows nginx version: nginx/1.26.3
1 Like

Right, my mistake. I’ve updated the OP to:

4 Likes

I run self hosted, and the Dashboard shows it up to date (2026.7.6), but cat /VERSION returns 2.0.20260803 which seems concerning.

image

Am I missing something?

/VERSION holds the base image version, not the application version

What’s the difference? The original post says:

So what do I need to do to correct this? Currently it shows:

root@forum-app:/var/www/discourse# cat /VERSION
2.0.20260803
root@forum-app:/var/www/discourse# ruby -v
ruby 3.4.10 (2026-06-30 revision 2b0b7728dc) +PRISM [x86_64-linux]
root@forum-app:/var/www/discourse# nginx -v
nginx version: nginx/1.30.4

I think you just need to do a ./launcher rebuild app.

1 Like

I was in the same situation, for one of my two forums, and it does (as noted) mean that you haven’t got the base image update, which in this case you need, so a command line update is necessary.

It’s unfortunate that in this circumstance you still see the green smiley on the dashboard, as if all was well.

1 Like

Thanks for letting us know! The docker-image version check should now be fixed for 2026.7 ESR (and 2026.9/10).

2 Likes

The base image version is the version of the supporting environment (ruby runtime, image OS, OS libraries, etc.)

The application version is the version of Discourse itself (Discourse ruby code and supporting bundled code packages).

@david perhaps we should be exposing both versions on the screen? Maybe with a more distinct label such as “runtime environment” to avoid confusion, because otherwise people will get confused?

Installed                      Available
2026.7.6                       2026.7.6                  ☺ You're up to date!

Runtime Environment Ⓘ
2.0.20260803
4 Likes

6 posts were split to a new topic: Overcommit memory configuration

Exhausting, appreciate the vigilance David & team.

One can only hope things will settle down once the bulk of old bugs and long standing but undiscovered vulnerabilities are resolved - it can’t be a bottomless pit … can it?

3 Likes